473,398 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Xampp + Mail

Hi Experts,

I'm using Xampp control for php and
i set the smtp configuration in php.ini as

SMTP=mail.domainserver.com
smtp_port=25

but still i got an error like this.
Warning: mail() [function.mail]: SMTP server response: 503 This mail
server requires authentication when attempting to send to a non-local
e-mail address. Please check your mail client settings or contact your
administrator to verify that the domain or address is defined for this
server. in C:\xampp\htdocs\epsylonpes\test.php on line 7

and on test.php file

<?php
$mail_to = "te**@gmail.com";
$mail_from= "te**@yahoo.com";
$subject = "Testing";
$body = "Testing Mail for Xampp";
$headers = "Return-Path: $mail_from\nFrom: $mail_from\nX-Mailer:
PHPmail";
$success = mail($mail_to, $subject, $body, $headers );
if ($success){
echo $success ;
}
else{
echo "Failure";
}
?>
Feb 26 '08 #1
0 1518

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

Similar topics

0
by: John K | last post by:
I am still pretty new to this environment and don't know much about httpd.conf. I understand that it is the place to configure the server but don't know how to actually use it for what I'm trying...
18
by: Frances | last post by:
I want to learn PHP.. I know JSP, Servlets, have been using Tomcat for 2 years now, and even though I know there are ways you can use PHP in conjunction with Tomcat, I'd rather not tinker with...
5
by: Frances | last post by:
a few days ago I installed XAMPP in my Windows 2000 machine, it completely messed my existing MySQL installation.. I've had it installed for over a year now (4.1) have never had any problems with...
1
by: pjpinella | last post by:
Hik, I'm ready to buy a new desktop PC with Windows Vista, but need to be sure XAMPP will run on it OK. I'd much prefer to install using the XAMPP Windows install routine, rather than manually. ...
1
by: Jothi | last post by:
I am php developer. I did the project using aweris web server. now i want to run the project in xampp web server. The problem is local mail function is available in aweris. Can we use the local...
5
by: DavidNorep | last post by:
Hi, I installed basic xampp with the installer from http://www.apachefriends.org/en/xampp-windows.html#524. When I started Apache from the panel, I got a window with the error message: This...
5
by: r.g. | last post by:
Hello, Recently, my PHP (5, as installed by the XAMPP package) stopped working, and won't let me run locally-served PHP files in my web browsers. I think (but I'm not sure) that the Apache...
1
by: AD | last post by:
Hello! I have a problem with XAMPP portable server run on Windows XP platform. I was building an application on this server, but I`ve noticed strange behaviour. I think that it is something...
2
by: Baldaris | last post by:
Hi, I am using Xampp , I am trying to use zend framework which i have installed from zend website, To use framework i need to save it in library folder right but i am not able to find it. if...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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,...
0
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...

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.