DKIM signing fix from Seph Soliman [via SourceForge](https://sourceforge.net/p/phpmailer/bugs/413/)
This commit is contained in:
parent
02a4f32622
commit
b62f5b69e8
|
|
@ -810,7 +810,7 @@ class PHPMailer {
|
|||
|
||||
// digitally sign with DKIM if enabled
|
||||
if (!empty($this->DKIM_domain) && !empty($this->DKIM_private) && !empty($this->DKIM_selector) && !empty($this->DKIM_domain) && file_exists($this->DKIM_private)) {
|
||||
$header_dkim = $this->DKIM_Add($this->MIMEHeader, $this->EncodeHeader($this->SecureHeader($this->Subject)), $this->MIMEBody);
|
||||
$header_dkim = $this->DKIM_Add($this->MIMEHeader . $this->mailHeader, $this->EncodeHeader($this->SecureHeader($this->Subject)), $this->MIMEBody);
|
||||
$this->MIMEHeader = str_replace("\r\n", "\n", $header_dkim) . $this->MIMEHeader;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue