Sending email from Wordpress in local server
I have a wordpress installed in the office for project tracking. Everything works fine except one thing - sending out email.
The wordpress resides on my own linux box and wordpress will issue the mail() command provided by PHP, for any email delivery. The caveat for that is, it relies on my PHP setting. Unlike the Windows counter part, which can simply define the SMTP location and have the email delivered accordingly, we linux user will be using the SENDMAIL underneath for message delivery.
Sendmail, is equivalent to nightmare to me, but my life is saved by Gentoo which has SSMTP installed by default.
That's what our friends in Debian defines SSMTP,
OK, after googling around, I found that SSMTP is very customizable. Mail can be sent successfully after setting up the following,
Define a valid email address that exist in the mail server. I used my own email address since I am sole responsible for the server setup.
This is the key field. I specified the real SMTP server that I want to use.
I specified the domain name that I want to use which is the name of the company I am working for.
That's it! Now mail will be delivered properly.
Happy WordPressing.
The wordpress resides on my own linux box and wordpress will issue the mail() command provided by PHP, for any email delivery. The caveat for that is, it relies on my PHP setting. Unlike the Windows counter part, which can simply define the SMTP location and have the email delivered accordingly, we linux user will be using the SENDMAIL underneath for message delivery.
Sendmail, is equivalent to nightmare to me, but my life is saved by Gentoo which has SSMTP installed by default.
That's what our friends in Debian defines SSMTP,
SSMTP is an extremely simple MTA to get mail off the system to a mail hub
OK, after googling around, I found that SSMTP is very customizable. Mail can be sent successfully after setting up the following,
root
Define a valid email address that exist in the mail server. I used my own email address since I am sole responsible for the server setup.
mailhub
This is the key field. I specified the real SMTP server that I want to use.
rewriteDomain
I specified the domain name that I want to use which is the name of the company I am working for.
That's it! Now mail will be delivered properly.
Happy WordPressing.