anonymous
2011-08-12 03:31:26 UTC
-------------------------------------------------------------------------------
ini_set("include_path","mypath");
require_once("class.phpmailer.php");
$mailer = new PHPMailer();
$mailer->IsSMTP();
$mailer->Host = 'xxxxxxxxxxxxxxx';
$mailer->Port = xx;
$mailer->SMTPAuth = true;
$mailer->Username = 'xxxxxxx@xxxxx.com';
$mailer->Password = 'xxxxxxx';
$mailer->FromName = 'Mittul Chauhan';
$mailer->From = 'myemail@address.com';
$mailer->AddAddress('anotheremail@address.com');
$mailer->Subject = 'Subject';
$mailer->Body = 'body Text';
if(!$mailer->Send())
{
echo "Message was not sent";
echo "Mailer Error: " . $mailer->ErrorInfo;
exit;
}
?>
-------------------------------------------------------------------------------
but as soon as i run this script .. m keep getting this error saying ..
-------------------------------------------------------------------------------
SMTP -> ERROR: RCPT not accepted from server: 550 No such user here
SMTP Error: The following recipients failed: anotheremail@address.com Message was not sentMailer Error: SMTP Error: The following recipients failed: anotheremail@address.com
SMTP server error: No such user here
-------------------------------------------------------------------------------
m getting problem in this link i think .. .
-------------------------------------------------------------------------------
$mailer->AddAddress('anotheremail@address.com');
-------------------------------------------------------------------------------
m entering the valid email addresses both at FROM and TO .. but i dont know still m having the same problem .. m entering the valid emails at both .. still the same problem . .
can somebody tell me .. wats wrong . my emails are rite .. .its not wrong .. still the same problem occurs . .
please help me ..