fussy Posted March 21, 2007 Share Posted March 21, 2007 On Linux, can you configure a remote SMTP server to send mail? I set SMTP = mySMTPserver under [mail function] in PHP.ini; I also stopped sendmail service on my local machine. There are no mails send out. If I run the local sendmail service, mails are sent out. Please help, and THANKS!!! Link to comment https://forums.phpfreaks.com/topic/43590-how-to-configure-php-to-use-a-remote-smtp-server-for-sending-mail-on-linux/ Share on other sites More sharing options...
hitman6003 Posted March 21, 2007 Share Posted March 21, 2007 The manual plainly states: SMTP string Used under Windows only: host name or IP address of the SMTP server PHP should use for mail sent with the mail() function. http://www.php.net/manual/en/ref.mail.php#mail.configuration I would recommend using phpmailer for simplicity's sake... http://phpmailer.sourceforge.net/ Link to comment https://forums.phpfreaks.com/topic/43590-how-to-configure-php-to-use-a-remote-smtp-server-for-sending-mail-on-linux/#findComment-211723 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.