tags:

views:

960

answers:

1

I'm trying to use PHPMAILER, but I keep getting:

SMTP -> FROM SERVER:220 smart6.bol.com.br ESMTP
SMTP -> FROM SERVER: 250-smart6.bol.com.br 250-PIPELINING 250-SIZE 13312000 250-VRFY 250-ETRN 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250 8BITMIME
SMTP -> FROM SERVER:250 Ok
SMTP -> FROM SERVER:553 : Sender address rejected: not owned by user X
SMTP -> ERROR: RCPT not accepted from server: 553 : Sender address rejected: not owned by user [email protected]
SMTP Error: The following recipients failed: [email protected] 

What should I do?

+1  A: 

Often for anti-spam purposes, "$mail->From" is required to be the same address as you use for login to your SMTP server.

If that is your case, you can use the "$mail->AddReplyTo" field for the senders address instead. Only a suggestion.

If it is not the solution, some extra debugging information can be enabled by setting

$mail->SMTPDebug = true;
anderstornvig