File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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-
664661Sending Messages Async
665662----------------------
666663
You can’t perform that action at this time.
0 commit comments