Trying to send mail using PHP via Postfix

January 11, 2018 1.9k views
Nginx PHP Email Ubuntu 16.04

So I’m trying to set up a contact form on my website. It’s an Ubuntu server running Nginx. Whenever I submit the message, it throws back a 502 error. I’ve got the listen location setup properly on Nginx and PHP and i set the sendmail path for PHP already. I don’t know what else to do

1 Answer

I had the wrong username as seen here

Have another answer? Share your knowledge.