doesn't receive mail from web site contact form

Posted July 30, 2013 7.3k views
Hi! I have a web site ( located in digital ocean's servers and an email address with this domain name ( but is located in google's mail servers.The problem is when i try to send mail from contact form into web site, i don't receive anything.The code of html-php is correct,so you think that i have configure something in my web site settings or in mail server settings?? (digital ocean droplet:ubuntu 12.04 x32) Thanks in advance

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
5 answers
Try installing an MTA: sudo apt-get install postfix

Then try sending an email through the contact form. Does that work?
no,unfortunately not!
thanks anyway
"The code of html-php is correct ..."

How did you confirm that?
This is a common problem with sendmail, (Google: sendmail slow)The solution:
Open your terminal and Type:


Now edit your host file:

sudo nano /etc/hosts localhost localhost.localdomain example.hostname

copy and replace with your hostname
Save and try again
^^^ Worked for me very well.