Jump to content

How to configure External mail server on Linux in PHP.ini


fussy

Recommended Posts

Is there anyway I can configure PHP email to use external mail server on Linux? I know you can do it on Windows.

 

I did an experience. I updated php.ini showed below. However I could not receive email. myServerAddress does have SMTP mail server running.  Any comments?

 

 

[mail function]

; For Win32 only.

; SMTP = localhost

SMTP = myServerAddress

smtp_port = 25

 

; For Win32 only.

;sendmail_from = [email protected]

 

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").

sendmail_path = /usr/sbin/sendmail -t -i

 

 

 

I don't think it is receiving problem. I can receive email if I keep sendmail service running on local Linux that runs PHP email. However I could not receive any email after I stopped sendmail service on my local Linux and set SMTP to another Linux server myServerAddress   in PHP.ini.

 

My question is can you configure PHP email on Linux to use sendmail service on other Linux server?

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.