send mail from wordpress phpmail (Sendmail / postfix?)

Posted October 13, 2014 4.4k views

How can I setup phpmail to send email from different wordpress sites hosted on the same VPS?
I need them to send emails only to certain email addresses ie from a contact form. I would rather not use a smtp server if that is possible?

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
2 answers

Yes, you can install postfix on your droplet which would allow you to send email without having to use an external SMTP server:

sudo apt-get install postfix

Thankyou for your response. Yes i believed this was the case. Are there any good guides around on how to do this?

  • Sorry to be replying to such an old thread, but did you ever figure this out? I have a couple of websites on my VPS and I’m trying to work out how to get the contact forms to work?