By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

Xampp + Mail

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.