Jump to content

Help on sending mail with php


dannydefreak

Recommended Posts

Hi.

Yesterday i had a problem with all my php codes that i used to send an email with( it displayed an err msg like

" Cannot connect to the mail server at "localhost" port 25....").I checked out different manuals and articles written about the mail() function and the php.ini configuration file, and after all that i was still not able to get my mail codes to work.I was very >:( and i went home.And to my surprise, this morning it is working again. I said again because previously i had the same problem and i managed to find a solution to it( at least i managed to stop the error message from displaying ;D).

The configuration file in the php.ini file is like

[mail function]

; For Win32 only.

SMTP = localhost

 

; For Win32 only.

smtp_port = 25

 

; For Win32 only.

sendmail_from = NULL

 

; For Win32 only.

sendmail_path = d

 

Using this configuration, it stopped to display an error message.But the problem is the message is not being delivered to the destination email address.

 

Can any one tell me why this is happening?

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/37726-help-on-sending-mail-with-php/
Share on other sites

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.