Forum Moderators: coopster

Message Too Old, No Replies

PHP Mail

I want to set up a small application for sending mail using PHP

         

samazjoe

11:57 am on Jan 28, 2008 (gmt 0)

10+ Year Member



I want to set up a small application for sending mail using PHP, using a remote smtp server, with the application on my own local PC that is hosting the local intranet. How can I possibly Set-up the configurations because so far I have tried by setting some configurations in the php.ini file for SMTP and Sendmail_from but it still gives me an error as below

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:\AppServ\www\rionet\mymail.php on line 18

vincevincevince

1:47 am on Jan 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do the SMTP server details work correctly from a mail client on that system? It seems to me that you are trying to connect to an external SMTP server but did not specify the name of that server.

The details in php.ini for the SMTP server should be the same as you would set up in Outlook or similar.