Skip to content

Commit c66c4af

Browse files
authored
Fix construction of SmtpTransport in Mailer docs
1 parent 8d4022f commit c66c4af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/mailer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ Usage
3030
The Mailer component has two main classes: a ``Transport`` and the ``Mailer`` itself::
3131

3232
use Symfony\Component\Mailer\Mailer;
33-
use Symfony\Component\Mailer\Transport\Smtp\SmtpTransport;
33+
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
3434

35-
$transport = new SmtpTransport('localhost');
35+
$transport = new EsmtpTransport('localhost');
3636
$mailer = new Mailer($transport);
3737
$mailer->send($email);
3838

0 commit comments

Comments
 (0)