Jump to content

php.ini external mail server


signature16

Recommended Posts

I have setup WAMP server on my computer and I want the server to use an external mail server (my webhosts).  My computer is running Vista and the mail server I want to use it running Linux.

 

I can't figure it out from the PHP docs.

 

Can somebody point me in the right direction?

Link to comment
https://forums.phpfreaks.com/topic/75953-phpini-external-mail-server/
Share on other sites

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\Contact Form\contact.php on line 28

 

 

This is what is in my php.ini and i restarted apache

 

[mail function]

; For Win32 only.

SMTP = mail.mydomain.com

 

; For Win32 only.

sendmail_from = [email protected]

 

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.