DKIM signing fix from Seph Soliman [via SourceForge](https://sourceforge.net/p/phpmailer/bugs/413/)

This commit is contained in:
Synchro 2013-03-20 17:47:00 +01:00
parent 02a4f32622
commit b62f5b69e8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}