jonniejoejonson Posted March 3, 2010 Share Posted March 3, 2010 I have setup google aps to send my domains mail. This basically means that the mx records for my domain point to googles mail servers. However i have scripts on my site that use the php mail() function. As the mx records for mail are on a different server how should i send mail from the server my website is hosted in so that it actually sends through the google mail server? kind regards J. Link to comment https://forums.phpfreaks.com/topic/193979-php-mail-function-to-send-mail-from-another-server/ Share on other sites More sharing options...
ferdi Posted March 3, 2010 Share Posted March 3, 2010 You could just setup your smtp mail settings in your php.ini to your Google account's, or you could use a class for it(there are many of those, and it's easier - Google). Link to comment https://forums.phpfreaks.com/topic/193979-php-mail-function-to-send-mail-from-another-server/#findComment-1020822 Share on other sites More sharing options...
jonniejoejonson Posted March 6, 2010 Author Share Posted March 6, 2010 thanks for that ferdi. Link to comment https://forums.phpfreaks.com/topic/193979-php-mail-function-to-send-mail-from-another-server/#findComment-1022403 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.