You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the issue comes from the removing of spaces from $dkimhdrs. That variable is set with "\r\n ", but in DKIM_HeaderC this is removed by preg_replace('/\r\n[ \t]+/m', '', $signHeader)
Because of that there is no space between some of the values in the DKIM signature, so the output hash is not valid.
It is fixed by removing the "\r\n" in the $dkimhdrs or changing line 4357 in src/PHPMailer.php: $signHeader = preg_replace('/\r\n[ \t]+/m', '', $signHeader); $signHeader = preg_replace('/\r\n[ \t]+/m', ' ', $signHeader);
Hi,
When I update PHPMailer from version 5.2.27 to 6.0.7 DKIM stop working. When reverting to v5.2.27 DKIM works properly.
Sample code:
The DKIM key is generated with DKIM_gen_keys.phps.
Thanks :)
The text was updated successfully, but these errors were encountered: