I generally prefer to send emails via Google Workspace, if necessary using sSMTP, but in case someone needs to use phpmailer and send out emails, phpmailer also makes DKIM signing relatively easy.
https://www.stechies.com/spf-dkim-verify-your-emails-using-phpmailer/
https://github.com/PHPMailer/PHPMailer/blob/master/examples/DKIM_sign.phps
$mail->DKIM_domain = 'ourdomain.com';
$mail->DKIM_private = 'path/to/private.key>';
$mail->DKIM_selector = 'whatever';
$mail->DKIM_passphrase = '';
$mail->DKIM_identity = $mail->From;
No comments:
Post a Comment