Mail error: unable to send email. Contact the site administrator
2013 31 Oct

Mail error: Unable to send e-mail. Contact the site administrator if the problem persists.

By Subhojit Paul

There is a solution to fix this problem for Ubuntu users. If your Ubuntu has not been setup correctly and you call drupal_mail or PHP mail function, you will be getting the following error: Unable to send e-mail. Contact the site administrator if the problem persists.

To fix this problem you have to install postfix and configure it. Simply, installing postfix won't solve the problem. To install postfix refer to this stackoverflow answer To configure postfix refer to thislink. Or you can simply run

  1. dpkg-reconfigure postfix

and configure postfix correctly. Make sure you have not blocked 127.0.0.1 IP address that is the IP address of localhost Now you can easily send email using drupal_mail or PHP mail function.

Featured blog

web-personalization

Personalized Content is a Proven Entity !!

Irrespective of how big a business icon or brand you are, increasing the relevance of your website will always be critical to your success.

Read More

Git Hooks

Git hooks for better codes

We are programmers and we are always on the lookout for ways to improve our code. A good and structured way of coding defines the completeness of a programmer.

Read More

Drupal ,varnish cache

Hard time with Drupal, Varnish Cache and Cookies

Using a reverse proxy server in front of a web server is usually needed for every big site and it is a very good thing to do so as reverse proxy server will handle all the anonymous traff

Read More

Say no to captcha

Say no to captcha - Various Spam Protection Methods

Maintaining high traffic websites have their own merits and demerits, the most annoying thing about them is SPAM.

Read More