Skip to content

Commit 5203714

Browse files
committed
minor #13194 Update mailer.rst (simonberton)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead (closes #13194). Discussion ---------- Update mailer.rst Symfony\Component\Mailer\MailerInterface method send returns void. Not Symfony\Component\Mailer\SentMessage <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 7d128a6 Update mailer.rst
2 parents e4e826b + 7d128a6 commit 5203714

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mailer.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,8 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object::
121121
->subject('Time for Symfony Mailer!')
122122
->text('Sending emails is fun again!')
123123
->html('<p>See Twig integration for better HTML integration!</p>');
124-
125-
/** @var Symfony\Component\Mailer\SentMessage $sentEmail */
126-
$sentEmail = $mailer->send($email);
127-
// $messageId = $sentEmail->getMessageId();
124+
125+
$mailer->send($email);
128126

129127
// ...
130128
}

0 commit comments

Comments
 (0)