Skip to content

Commit cab0e57

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: SMimeEncrypter add Tip
2 parents 489acc3 + ad4f1d2 commit cab0e57

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)