10000 Use constants instead of numbers to set email priority · symfony/symfony-docs@13eb063 · GitHub
[go: up one dir, main page]

Skip to content

Commit 13eb063

Browse files
committed
Use constants instead of numbers to set email priority
1 parent d40922f commit 13eb063

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/mime.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ methods to compose the entire email message::
4444

4545
use Symfony\Component\Mime\Email;
4646

47+
4748
$email = (new Email())
4849
->from('fabien@symfony.com')
4950
->to('foo@example.com')
5051
->cc('bar@example.com')
5152
->bcc('baz@example.com')
5253
->replyTo('fabien@symfony.com')
53-
->priority(1)
54+
->priority(Email::PRIORITY_HIGH)
5455
->subject('Important Notification')
5556
->text('Lorem ipsum...')
5657
->html('<h1>Lorem ipsum</h1> <p>...</p>')

0 commit comments

Comments
 (0)
0