Jump to content

fail to send email locally in a php script


itpvision

Recommended Posts

Hello,

I am trying to send email from a php script on my local pc, i am still developing the site on my local computer, and not still testing online

The php.ini has the followinf settings:

 

--------------------------

[mail function]

; For Win32 only.

SMTP = localhost

smtp_port = 25

 

; For Win32 only.

sendmail_from = localhost

-----------------------

I also have added this line in my php script:

ini_set ("sendmail_from",localhost);

 

While trying to send a mail I get the following error:

 

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()

 

Any Help appreciated

Regards

Many Thanks

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.