diff --git a/mailer.rst b/mailer.rst index 6dd02d58c35..5516f4564ea 100644 --- a/mailer.rst +++ b/mailer.rst @@ -93,7 +93,7 @@ Creating & Sending Messages --------------------------- To send an email, autowire the mailer using -:class:`Symfony\\Component\\Mailer\\MailerInterface` (service id ``mailer``) +:class:`Symfony\\Component\\Mailer\\MailerInterface` (service id ``mailer.mailer``) and create an :class:`Symfony\\Component\\Mime\\Email` object:: // src/Controller/MailerController.php