php - PHPMailer: Amazon SES returning "554 Transaction failed: Invalid email address undisclosed-recipients:;." -
when using phpmailer send email bcc'd addresses via amazon ses, ses returns error below.
554 transaction failed: invalid email address undisclosed-recipients:;.
this happens when there no address specified in "to" field , filled "undisclosed-recipients:;". have tried sending email address specified in "to" field , works fine. when sending email address in "to" field , addresses bcc'd, works without error.
this php code i'm using add each email address bcc, $addresses
array containing email addresses, without keys.
if(is_array($addresses)) { foreach ($addresses $email) { $mail->addbcc($email); } }
this output phpmailer.
invalid address: noreply client -> smtp: mail from:<*redacted*> smtp -> server:250 ok client -> smtp: rcpt to:<*redacted, bcc'd address*> smtp -> server:250 ok client -> smtp: rcpt to:<*redacted, bcc'd address*> smtp -> server:250 ok client -> smtp: data smtp -> server:354 end data <cr><lf>.<cr><lf> client -> smtp: date: mon, 12 aug 2013 20:46:09 +0000 client -> smtp: return-path: <*redacted*> client -> smtp: to: undisclosed-recipients:; client -> smtp: from: noreply <*redacted*> client -> smtp: subject: *redacted* client -> smtp: message-id: <*redacted*> client -> smtp: x-priority: 3 client -> smtp: x-mailer: phpmailer 5.2.6 (https://github.com/phpmailer/phpmailer/) client -> smtp: mime-version: 1.0 client -> smtp: content-type: text/html; charset=iso-8859-1 client -> smtp: content-transfer-encoding: 8bit client -> smtp: client -> smtp: *redacted* client -> smtp: client -> smtp: . smtp -> server:554 transaction failed: invalid email address undisclosed-recipients:;. smtp -> error: data not accepted server: 554 transaction failed: invalid email address undisclosed-recipients:;. smtp error: data not accepted. client -> smtp: quit smtp -> server:221 bye string(126) "smtp error: data not accepted. smtp server error: transaction failed: invalid email address undisclosed-recipients:;.
i have found few people error when using postfix ses, yet find how resolved issue.
i've seen happen if email in 'bcc' matches email in 'to' field.
Comments
Post a Comment