You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OskarStark
changed the title
[mail-pace-mailer] "throw new HttpTransportException" cause a "Undefined array key 'Message' or 'ErrorCode' "
[Mailer][MailPace] "throw new HttpTransportException" cause a "Undefined array key 'Message' or 'ErrorCode' "
Feb 3, 2023
Symfony version(s) affected
6.2.5
Description
mail-pace-mailer failed to
throw new HttpTransportException
because of the missing array keys.When return status code is not 200, it failed because of the typo on line 70.
$result
array doesn't containMessage
orErrorCode
Instead of
Message
, mail-pace api returnserror
:mail-pace api responses: https://docs.mailpace.com/reference/responses
How to reproduce
Just use a any wrong API key or send it with not verified domain.
Possible Solution
Changing
Message
toerror
and$result['ErrorCode']
to$statusCode
might fix it.Additional Context
No response
The text was updated successfully, but these errors were encountered: