All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help Wordpress not sending email notification if 'not' using local email.
Hello can someone please help, I have already contacted my hosting 3 times but none of them were able to fix the problem.
My Issue is:
I am not receiving notification emails from my WordPress website.
EG: request a new password (no link is sent), new orders (woo commerce) etc.
I have installed a plugin to log emails (wp-mail-log), and it shows that emails are sent but in reality, it's not.
Emails Work , if the recipient is using local email like [email protected], but if the email is not part of the site domain I am not able to receive system generated emails.
For debugging, I also installed a new WordPress on the same domain but on a different directory, the problem is the same.
I also tried adding this to my root domain to test the site phpmailer and it works fine.
<?php > ini_set( display_errors, 1 ); > error_reporting( E_ALL ); > $from = "[email protected]"; > $to = "[email protected]"; > $subject = "PHP Mail Test script"; > $message = "This is a test to check the PHP Mail functionality"; > $headers = "From:" . $from; > mail($to,$subject,$message, $headers); > echo "Test email sent"; > ?>
The company is BLUEHOST, also note that I also have other addon domains using WordPress, and it works fine. Only this particular domain I am having a problem.
Note: The webmail works fine it can send and receive emails, only thing does not work is WordPress system generated emails.
Please help..
What should I do?
Thank you for reading.
pandabb
Comments
Hello those are viewing and know the solution please post. Thank you.
Without going into the issue too much, use the following plugin for your mailing requirements on wp
https://wordpress.org/plugins/smtp-mail/
Maybe time to look into mail-server logs. Or try using different smtp-server if it is allowed on your hosting...
Use SMTP MAIL plugin and setup smtp from cPanel.
Very strange. If the mail function works then I'm a little lost. I'd give the SMTP plugin a go though, shouldn't be needed.. but yeah, worth a shot.
Thank you guys!
I also tried using SMTP plugin and use the same mail servers (Bluehost) SMTP works but it can only send emails to the same domain, if the system generated email is sending to Gmail , Yahoo or any other email other than local email, it's not received.
If I use SMTP like Sendgrid it works perfectly though. If possible I still want to know or fix this issue and just use default settings. This issue is only isolated, my other domains are working fine sending system emails.
Thanks for this. It works for me.
You got a proper spf record configured? dkim enabled but no record setup on DNS?
I did not touch those settings, I'm using the default when you add a domain to cpanel.
But will this help, mydomain.com/webmail works fine, can send/ receive email even those that are not from the same domain, or Gmail yahoo and so on..
The issue is within WordPress, system generated emails are not received but marked as sent using wp-mail log.
UPDATE:
After an hour talking to customer service (my 4th time but with a different approach) finally we got something.
Thanks everyone!
I get this problem sometimes as well. Usually it's the host blocking something. I gave up on shared hosting and email to be honest.
Just use some smptplugin (like the one suggested) and make use of a relay service and save yourself the headache.
It's probably your host blocking outgoing mail. Some people (like me) would take that as a good sign, +1 for your host. Try opening a ticket.
Or you could do what many would consider the best option: just use SMTP with a dedicated mail service. Plenty of good free or cheap options out there.
If this doesn't solve the issue, I would look into your SPF policy.
I had a similar (or maybe the same) problem in this thread:
https://www.lowendtalk.com/discussion/31913/google-domains-how-to-send-email-to-and-from-with-same-host#latest
Not sure if it will help since I haven't had it since Centos 5 but might help
Thanks, everyone, problem solved!