The Wayback Machine - https://web.archive.org/web/20250625180223/https://github.com/symfony/symfony/issues/45973
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

Answer after sending a message from symfony/mailer with API #45973

Copy link
Copy link
Closed
@liamka

Description

@liamka
Issue body actions

Symfony version(s) affected

6.0.7 (and less more)

Description

Need return response message from API

Affected:

  • symfony/amazon-mailer
  • symfony/google-mailer
  • symfony/mailchimp-mailer
  • symfony/mailgun-mailer
  • symfony/mailjet-mailer
  • symfony/postmark-mailer
  • symfony/sendgrid-mailer
  • symfony/sendinblue-mailer
  • symfony/oh-my-smtp-mailer

(example https://github.com/symfony/mailjet-mailer/blob/5.4/Transport/MailjetApiTransport.php#L58)

How to reproduce

$transport = new MailjetApiTransport('1111', '2222');
$email = (new Email())
        ->from(new Address('test@test.org', 'Test Box'))
        ->to('my@mail.com')
        ->priority(Email::PRIORITY_HIGHEST)
        ->subject('My first mail using Symfony Mailer')
        ->text('This is an important message!')
        ->html('<strong>This is an important message!</strong>');
    $sentMessage = $mailer->send($email);

    $sentMessage->getContent();

Possible Solution

Return $response from this method: https://github.com/symfony/mailer/blob/5.4/Transport/AbstractHttpTransport.php#L69

Additional Context

i can create pull request for this!

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.