8000 [Mailer] Missing import in first example · symfony/symfony@3677d49 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3677d49

Browse files
authored
[Mailer] Missing import in first example
In README, Getting Started section, the first example had `use Symfony\Component\Mime\Email; ` missing. | Q | A | ------------- | --- | Branch? | 4.4 for features / 4.4, 5.4 or 6.0 for bug fixes <!-- see below --> | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | - <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against the latest branch. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). -->
1 parent 2687623 commit 3677d49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Mailer/README.md

Lines changed: 1 addition & 0 deletions
61AF
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ $ composer require symfony/mailer
1313
```php
1414
use Symfony\Component\Mailer\Transport;
1515
use Symfony\Component\Mailer\Mailer;
16+
use Symfony\Component\Mime\Email;
1617

1718
$transport = Transport::fromDsn('smtp://localhost');
1819
$mailer = new Mailer($transport);

0 commit comments

Comments
 (0)
0