Trying to send mail using PHP via Postfix

January 11, 2018 1.3k views
Email PHP Nginx 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
awsumatt January 11, 2018
Accepted Answer

I had the wrong username as seen here

Have another answer? Share your knowledge.