PHPMailer\PHPMailer
PHPMailer::sign()
Set the public and private key files and password for S/MIME signing.
Method of the class: PHPMailer{}
No Hooks.
Return
null
. Nothing (null).
Usage
$PHPMailer = new PHPMailer(); $PHPMailer->sign( $cert_filename, $key_filename, $key_pass, $extracerts_filename );
- $cert_filename(string) (required)
- -
- $key_filename(string) (required)
- -
- $key_pass(string) (required)
- Password for private key
- $extracerts_filename(string)
- Optional path to chain certificate
Default: ''
PHPMailer::sign() PHPMailer::sign code WP 6.6.1
public function sign($cert_filename, $key_filename, $key_pass, $extracerts_filename = '') { $this->sign_cert_file = $cert_filename; $this->sign_key_file = $key_filename; $this->sign_key_pass = $key_pass; $this->sign_extracerts_file = $extracerts_filename; }