I need to know that how can I send an email digitally signed with S/MIME encryption using the phpmailer API. I'm able to send normal email. Please provide me with links or examples of how to do it.
我需要知道如何使用phpmailer API发送使用S / MIME加密进行数字签名的电子邮件。我可以发送普通电子邮件。请提供链接或如何操作的示例。
1 个解决方案
#1
0
Hope that this will help you:
希望这会对你有所帮助:
require "class.phpmailer.php";
$mail = new PHPMailer();
$mail->IsMail();
$mail->AddAddress("email@example.com");
$mail->Subject = "Test 1";
$mail->Body = "Test 1 of PHPMailer.";
// CUSTOMISED SIGN EMAIL : START
$mail->sign_cert_file="/xxx/key.pem";
$mail->sign_key_file="/xxx/key.pem";
$mail->sign_key_pass="yyy";
// CUSTOMISED SIGN EMAIL : END
$mail->Send(); // Send encrypted email!
#1
0
Hope that this will help you:
希望这会对你有所帮助:
require "class.phpmailer.php";
$mail = new PHPMailer();
$mail->IsMail();
$mail->AddAddress("email@example.com");
$mail->Subject = "Test 1";
$mail->Body = "Test 1 of PHPMailer.";
// CUSTOMISED SIGN EMAIL : START
$mail->sign_cert_file="/xxx/key.pem";
$mail->sign_key_file="/xxx/key.pem";
$mail->sign_key_pass="yyy";
// CUSTOMISED SIGN EMAIL : END
$mail->Send(); // Send encrypted email!