Skip to content

Commit 05b9d80

Browse files
committed
Merge branch '5.0'
* 5.0: SMimeEncrypter add Tip
2 parents fd5cbe1 + cab0e57 commit 05b9d80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mailer.rst

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

633+
// the second optional argument of SMimeEncrypter defines which encryption algorithm is used
634+
// (it must be one of these constants: https://www.php.net/manual/en/openssl.ciphers.php)
633635
$encrypter = new SMimeEncrypter([
634636
// key = email recipient; value = path to the certificate file
635637
'jane@example.com' => '/path/to/first-certificate.crt',

0 commit comments

Comments
 (0)