Jump to content

How to Configure PHP to Use a Remote SMTP Server for Sending Mail on Linux


fussy

Recommended Posts

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!!!

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/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.