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
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: