PHPMailer SMTP Error 550

By : Swayze

I'm using PHPMailer to send email via SMTP on a shared server (my hosting service is Softsys). Email is being sent fine to email addresses on the same server (i.e. the @ domain is my webdomain). However, when I try to change the recipient to @gmail (or any external address) I get the following error log:

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "550 <[email protected]> No such user here"
SMTP -> get_lines(): $data is "550 <[email protected]> No such user here"
SMTP -> FROM SERVER:550 <[email protected]> No such user here
SMTP -> ERROR: RCPT not accepted from server: 550 <[email protected]> No such user here
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 OK"
SMTP -> get_lines(): $data is "250 OK"
Message could not be sent.
Mailer Error: SMTP Error: The following recipients failed: [email protected]

Is this an issue with my server or my code? Should I just contact my server admin? Thank you in advance for any help!

Here's my code

$mail = new PHPMailer();

$mail->Host = "";
$mail->SMTPAuth = true;
$mail->Username = "myemail";
$mail->Password = "********";
$mail->From = "[email protected]";
$mail->FromName = "John Doe";
$mail->AddAddress("[email protected]");    


$mail->Subject = "Here is the subject";
$mail->Body    = "This is the HTML message body <b>in bold!</b>";
$mail->AltBody = "This is the body in plain text for non-HTML mail clients";

   echo "Message could not be sent. <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;

echo "Message has been sent";
By : Swayze


Do you have shell access for your account? Then you might check some things like the MX record that you get with the command 'dig mx'. If not, be best way is to contact you Hoster. I guess someone on the same server has configured the domain I guess they are using exim as MTA (because of the message response). It could be, that exim is trying to resolve to it's own host = local delivery because of a domain on the server. Have you tried other Domains/Email-Addresses?

By : DrDol

If you are trying to send email to gmail, gmail says that [email protected] does not exist, try to use [email protected] (remove caps). If not then try using some email you really know.

This video can help you solving your question :)
By: admin