This is a discussion on sending mail from winxp os ,apache ws, php within the PHP Language forums, part of the PHP Programming Forums category; I have windows xp pc and i have installed apache as a web server and php also working fine, but ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have windows xp pc and i have installed apache as a web server and
php also working fine, but when i am sending mail, its giving me following error when upload same to linux live server its working, please help me what do i have to do for this Warning: 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:\Safras\WebHosting\netoffice.cybersoft.lk\functi ons.php on line 377 Warning: 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:\Safras\WebHosting\netoffice.cybersoft.lk\functi ons.php on line 377 done LINE 377 mail("$MYFULLEMAIL", "$MYSUBJECT", "$MYBODY", $MYHEADERS); |
|
|||
|
Safras Ahamed wrote:
> I have windows xp pc and i have installed apache as a web server and > php also working fine, but when i am sending mail, its giving me > following error <snip> 1. www.php.net/mail 2. http://groups.google.com/groups?selm...0rack1.php.net -- | Just another PHP saint | Email: rrjanbiah-at-Y!com |
|
|||
|
Safras Ahamed wrote:
> I have windows xp pc and i have installed apache as a web server and > php also working fine, but when i am sending mail, its giving me > following error > > when upload same to linux live server its working, please help me what > do i have to do for this > > > Warning: 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:\Safras\WebHosting\netoffice.cybersoft.lk\functi ons.php > on line 377 > > Warning: 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:\Safras\WebHosting\netoffice.cybersoft.lk\functi ons.php > on line 377 > done > > LINE 377 > mail("$MYFULLEMAIL", "$MYSUBJECT", "$MYBODY", $MYHEADERS); it is trying to send a mail via your LOCAL mailserver. do you HAVE a local mailserver installed? -- "The goal of Computer Science is to build something that will last at least until we've finished building it." -- unknown |