Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
levubis? Please do not insert your link into replies like that. I’ve removed the link to your business site, your help is appreciated but please don’t do that.
Hi guys,
On this server I have 10 sites, same IP. All the others are sending emails from the WordPress just fun. I am moving to checking the MX configuration, though I can conceive of why they would just change randomly.
Is a possible that a plugin I installed in the last day or two could change the php.ini set up enough to do this? Ill follow up with the results from my MX field trip.
BJ
Here is what I have found.
MX records are correct. Confirmed and can send email to users on domain.
Tested server with email script below and it works. I receive a “Hello” email as indicated. Any suggestions?
<?
$to = 'redacted';
$subject = 'The test for php mail function';
$message = 'Hello';
$headers = 'From: redacted' . "\r\n" .
'Reply-To: test@test.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
When I try to get lost password I encounter the same error.
The e-mail could not be sent.
Possible reason: your host may have disabled the mail() function.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Try something simple: if you’ve a GMail account then install a SMTP plugin and see if you can use Google to deliver that mail.
I’ve recently used this one but there are others.
http://wordpress.org/plugins/wp-mail-smtp/
If that does work then it’s either your host that’s blocking email or your host hasn’t setup your server to deliver email.
So, I can definitely send php mail from the server. However, on my site I can not generate any kind of email. When viewing my trace email function on cPanel there is no record of receiving the send following the day I upgraded to WP 3.8.1, which I currently only believe is a coincidence but its the only change state to my site that I can pin point.
How would any of you go about trouble shooting this?
BJ
Thank you Jan. Ill try that next.
Jan, I am grateful!
That plugin fixed the problem.
Have a fantastic day.
BJ
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
WordPress uses phpMailer which might be detecting the configuration wrong or something.
If you change your test code to use wp_mail instead, does it work?