sending mail from winxp os ,apache ws, php

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-22-2004
Safras Ahamed
 
Posts: n/a
Default sending mail from winxp os ,apache ws, php

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);
Reply With Quote
  #2 (permalink)  
Old 09-22-2004
R. Rajesh Jeba Anbiah
 
Posts: n/a
Default Re: sending mail from winxp os ,apache ws, php

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

Reply With Quote
  #3 (permalink)  
Old 09-22-2004
Stefan Hegenbart
 
Posts: n/a
Default Re: sending mail from winxp os ,apache ws, php

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0