Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SendGrid Mailer stopped working after latest update #42306

Copy link
Copy link
Closed
@rubanooo

Description

@rubanooo
Issue body actions

Symfony version(s) affected: 5.3

Description
Sending e-mails via de Sendgrid mailer API transport stopped working after the latest update, I have done some digging in the commits and it seems like the following commit: symfony/sendgrid-mailer@e6f0e43 breaks sending emails.

The sendgrid API does not return a response body when sending the email has been successful, see documentation here. This causes an exception when decoding the response.

How to reproduce

Setup the sendgrid mailer per documentation and send an email with a 202 response

Possible Solution

Check that the response code before decoding the response.

  • If the response code is 202, do nothing
  • If the response code is an error code, decode the response and use it in the exceptions for a clear error message

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.