Question:
PHP - SEND MAIL .. .SMTP server response: 550 No such user here in?
anonymous
2011-08-12 03:31:26 UTC
hello .. m using the simple php script to send email using phpmailer .. here is my script ..


-------------------------------------------------------------------------------
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 ..
Four answers:
anonymous
2011-08-12 03:57:56 UTC
Your current hosting package or service MUST allow SMTP ( http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol ) to work. Otherwise, no email can be sent.



PHP: Sending Email Tutorial (Text/HTML/Attachments): http://www.webcheatsheet.com/php/send_email_text_html_attachment.php



Ron
egbe
2016-12-09 00:37:38 UTC
Server Response 550
?
2016-10-18 12:53:10 UTC
i've got been experiencing this difficulty considering the fact that final Monday (Feb eleven) - I wrote Yahoo help and that they mentioned they have been looking into it. as quickly as I final pronounced as into their helpdesk (final Thurs i think of), there replaced right into a recorded message asserting that they have been conscious of SMTP delays...yet of course no longer something has been resolved as of yet. i've got been periodically sending attempt messages and that they take everywhere from some min to i think of the longest postpone replaced into 8 hours or so. that's extraordinarily ridiculous extraordinarily while this would nicely be a enormous reason such extremely some human beings pay for Plus service.
just "JR"
2011-08-12 04:43:00 UTC
DON'T USE A CLASS to send emails! It is ludicrous!

You only need 4 lines of code (cehck php.net, function "mail" for examples)

... and your server must have SMTP, of course.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...