473,503 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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);
Jul 17 '05 #1
2 3288
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

Jul 17 '05 #2
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
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7594
by: Seagull Manager | last post by:
Running Apache 1.3, PHP 4.3, and WinXP, configured acc. to instructions on apache manual and php manual (as far as I can see), but getting "internal server error" in browser... log says "Premature...
3
2494
by: Laiverd.COM | last post by:
Hi, Have been busy figuring this out for a couple of hours now, but to no avail. I'm testing a form build in Flash that is being submitted through a PHP page. All working fine as long as the PHP...
15
4282
by: Sven Templin | last post by:
Hello all, our configuration is as following described: - OS: Windows 2000 - Apache server 1.3 - Php 3.8 - MS outlook client 2000 _and_ no SMTP server available in the whole intranet.
26
1756
by: Massimo Zaccarin | last post by:
ok, I know that I have to use the System.Web.Mail.SmtpMail class, but I've read from...
5
14219
by: bilal | last post by:
I have installed PHP , Apache on WinXP . I am using php mail function but i am getting error i also have installed Argosoft mail server and it is running properly using port 25 and php.ini is also...
3
1497
by: Jon Slaughter | last post by:
Do I need some module to send emails with php or is there something built into apache that does this? I want to send some email authentication emails but not sure if I have to have some type of...
17
3765
by: William Gill | last post by:
My development machine (WinXP, Apache 2.2.4) does not have an smtp server, and I don't really want to install one if I can help it. Does anyone know of a simple method of testing php scripts that...
7
9740
by: undbund | last post by:
Hi I am creating a newsletter system. The software should run from desktop computer (localhost) but be able to send email to anyone on the internet. Can you guys give me some ideas on how to...
31
12607
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.