WP-Email: Could not instantiate mail function
-
I am using WP-Email and WP-DB Manager in my blog. As of yesterday I tried to email a database backup to an email address of my choice when it complained it couldn’t email the backup file. Out of curiosity I checked whether WP-Email is working and it throws the error “Could not instantiate mail function”
I thought my host probably switched off the PHP: Mail function and contacted them immediately. To my surprise they said it’s on, not off. As I was suspecious I tested the function myself using some PHP code and the result was positive.
I assumed it should be a problem with the plugins. Then I rememebered there’s no way both plugins could go down at the same time. I tested WP-DB Manager in a blog hosted in another server from a different hosting provider and it worked without any issue. Any idea what’s keeping the plugins from calling the Mail() function? Both plugins were functioning well until yesterday.
I tried the following,
1. Disabling all the other plugins
2. Reinstalling WordPress
3. Reinstalling WP-DB Manager
4. Clearing the cache (I am using WP-Super Cache)Nothing has worked so far.
One thing I know for sure. This has nothing to do with WordPress or the plugins in question. The problem is because of configuration error in the server. I contacted the hosting company. Given below is their response. I couldn’t extract any clues or solutions from their reply however.
In order to send email from the server via PHP, I suggest you use the code specified in the below link:
https://manage.bigrock.in/kb/servlet/KBServlet/faq1060.htmlWe have tested this script and it works seamlessly.
PHP Mailer is a PHP email transport class and mail() is a function under it.
I have tested the PHP Mail function using a PHP mail script and it was working fine. I have uploaded the test mail script (i.e. testmail.php) under public_html. I have mentioned [email protected] to receive mail and i was able to receive mail. Hence I request you to check the same at your end and confirm.
PHPMailer is a PHP email transport class featuring file attachments, SMTP servers, CCs, BCCs, HTML messages, word wrap, and more. Sends email via sendmail, PHP mail(), QMail, or directly with SMTP. Support for additional transports, such as SMS, MMS will be forthcoming.
Using phpmail script we can check whether phpmailer is functioning or not.Please refer following URL for more details on PHPMailer :
https://www.askapache.com/php/phpfreaks-eric-rosebrocks-phpmailer-tutorial.html.Do let us know if you need any further details.
- The topic ‘WP-Email: Could not instantiate mail function’ is closed to new replies.