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::
647
647
// ...
648
648
->to('john@example.com');
649
649
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)
650
652
$encrypter = new SMimeEncrypter([
651
653
// key = email recipient; value = path to the certificate file
652
654
'jane@example.com' => '/path/to/first-certificate.crt',
@@ -656,11 +658,6 @@ and it will select the appropriate certificate depending on the ``To`` option::
656
658
$firstEncryptedEmail = $encrypter->encrypt($firstEmail);
657
659
$secondEncryptedEmail = $encrypter->encrypt($secondEmail);
658
660
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
-
664
661
Sending Messages Async
665
662
----------------------
666
663
You can’t perform that action at this time.
0 commit comments