Contact form won't work on my droplet?

  • Posted on April 26, 2014
  • dydwn600Asked by dydwn600

Hello! I am a newbie to Digitalocean… So I am learning to know more about it. Anyway, I have opened my test website but the contact form won’t work. I have tested it on my other hosting service, and it works perfectly (It sends me an email to my email address after filling in the form and submitting it)

However, on my droplet site it won’t work. I have installed a lot of php packages to make it work (such as Postfix, SSMPT, Sendmail, SASL, MIME, and etc…)

I have done a lot of solutions out there, but they won’t fix my problem. Contact form just redirects me to the blank site after submitting it. This is odd, this does not happen on my shared hosting server. I believe there is something wrong on my droplet server?

Can you guys please help me :( Thank you in advance.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Messages like “address already in use” are usually an indication that something is already running on the port that your process needs to use. It’s not clear to me exactly what is going on because I don’t know what your configuration is. But what I see is that something called sm-mta is unable to create an SMTP port. What that says to me is that there is another MTA already running. You’ll either need to stop that MTA or configure your script or PHP installation to use the MTA that’s already running, or possibly even configure it to run on a different port.

Do you have Postfix installed or some other needed Mail Transfer Agent? <br> <br>I have realized from my own experience that most people switching from a shared hosting environ to a VPS don’t realize that the mail service is not included

Hello! thank your your response. <br> <br>These are what I see in mail.log <br> <br> <br>apr 25 13:35:15 localhost sm-mta[18889]: s3PELAVH007035:, ctladdr=www-data@localhost <br>(33/33), delay=03:14:05, xdelay=00:00:00, mailer=esmtp, pri=174075,, dsn4.0.0, stat=Deferred: Connection refused by <br> <br>Apr 25 13:35:16 localhost sm-mta[18888]: deamon MTA-v4: problem creating SMTP socker <br>Apr 25 13:35:21 localhost sm-mta[18888]: NOQUEUE: SYSERR(root): opendaemonstocket: daemon MTA-4: cannot bind: Address already in use <br> <br> <br> <br>Connection refused, problem creating SMTP socker, address already in use <br> <br>Thanks <br>