Drupal not sending emails from contact form For some reason my Drupal website does not sends email from contact form. Can you help me where could be a problem?

It also does not send emails to administrator for newly added comments.

Just to mention, that only email it sends is when registered user requests for new password.

Thank you in advance!
There could be many reasons but here are a few things to check.


Check your logs. Watchdog may tell you the source of the error. For D7, it's at /admin/reports/dblog
Test other mail functions like the reset password link.
Make sure you have a valid email address set: The site email address (used when sending notification emails, and the default for most all modules that send emails) can be set via the Site Configuration > Site information page (admin/settings/site-information).
Check your permissions if you are sending email from a module like webforms.
If you have SSH access to your server, test the mail settings from there.

&lt;?php
    $to = &quot;your@email.com&quot;; // REPLACE
    $subject = &quot;Test mail&quot;;
    $message = &quot;Hello! This is a simple email message.&quot;;
    $from = &quot;noreply@eample.com&quot;;
    $headers = &quot;From:&quot; . $from;
    mail($to,$subject,$message,$headers);
    echo &quot;Mail Sent.&quot;;
Make sure to replace the "to" address, save it as mail.php, and run it using "php mail.php". If you get email from that, then the problem is specific to Drupal, and if not, then your server isn't sending email at all and you should contact your host.


See more at: http://drupalconnect.com/blog/how-debug-drupal-not-sending-email#sthash.Jkxx7ui6.dpuf