I encountered an issue with my vps hosting, that appears WP does not send any notifications mails, and neither a contact form plugin can't send mails.

The hosting company made a test php file, using the php mail() function and within that test file a mail is being sent from the server and being received in my mailbox.

How can this be solved, I do not want to install all the wp-smtp plugins, but to solve this using the default WP mail sending, which is working for me fine in any other hosting.

What should I ask from the hosting company to set/check in order to be able using the WP default mail sending? Any ideas?

Thanks

link|improve this question

80% accept rate
Some hosting companies restrict the use of email addresses, meaning that you can only use the same domain for mail as your website. Don't know if that's the case with you, but if it is, you might want to try to make your email address the same as your domain and see whether that works. – Piet Jun 13 '11 at 6:26
1  
Try sending mail with $result = wp_mail('your_mail','subject','body'); and then var_dump the result to see what errors you get var_dump($result); and report back with that info – Bainternet Jun 13 '11 at 6:29
@Piet - this is not the issue here. @Bainternet - I already made this test, and it worked. More than that I know the WP uses PHPMailer class to send mails, so I made a test file instancing a PHPMailer object and both tests sent mails, which means that maybe WP adds some headers or somethings else to the mail. Anyway, hosting customer service really trying to help and we'll see what they will come up with this. – Maor Barazany Jun 13 '11 at 17:06
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.