Page 1 of 1
Mail() Function to Remote Servers?
Posted: Tue Nov 11, 2008 8:21 pm
by davidshq
I have sendmail installed on my LAMP server right now and it sends emails out okay...But its just one more thing to maintain, and I'd rather outsource my email server. Is there an easy way to have the PHP Mail() function instead of looking for sendmail grab a SMTP server and shoot off of that? e.g. If I have a Google Apps account and want to relay off their smtp servers?
Dave.
Re: Mail() Function to Remote Servers?
Posted: Tue Nov 11, 2008 11:20 pm
by infolock
i wouldn't recommend it, but you should be able to..
have a look at the
smtp configuration options in your php.ini file
edit: also,
here is a good tutorial
Re: Mail() Function to Remote Servers?
Posted: Wed Nov 12, 2008 11:08 am
by davidshq
Any particular reasons you would recommend against?
Dave.
Re: Mail() Function to Remote Servers?
Posted: Wed Nov 12, 2008 11:16 am
by infolock
If you are trying to use gmail as a relay agent for mail, i'm not so sure they will be so pleased. and depending on why you are doing this, you might be labeled a spammer in their eyes.
of course, i'm going to the extreme here, but i wouldn't want to take a chance of having my gmail account deleted
