Skip to content

Commit ad4f1d2

Browse files
committed
Tweaks
1 parent b728bb8 commit ad4f1d2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mailer.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,8 @@ and it will select the appropriate certificate depending on the ``To`` option::
647647
// ...
648648
->to('john@example.com');
649649

650+
// the second optional argument of SMimeEncrypter defines which encryption algorithm is used
651+
// (it must be one of these constants: https://www.php.net/manual/en/openssl.ciphers.php)
650652
$encrypter = new SMimeEncrypter([
651653
// key = email recipient; value = path to the certificate file
652654
'jane@example.com' => '/path/to/first-certificate.crt',
@@ -656,11 +658,6 @@ and it will select the appropriate certificate depending on the ``To`` option::
656658
$firstEncryptedEmail = $encrypter->encrypt($firstEmail);
657659
$secondEncryptedEmail = $encrypter->encrypt($secondEmail);
658660

659-
.. tip::
660-
661-
The ``SMimeEncrypter`` class defines a second argument to choose
662-
an algorithm to encrypt the message. the cipher must be one of these PHP constants: https://www.php.net/manual/en/openssl.ciphers.php
663-
664661
Sending Messages Async
665662
----------------------
666663

0 commit comments

Comments
 (0)