Closed
Description
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!