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
4950
5051
5152
5253
->replyTo('[email protected]')
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)