From b62f5b69e886388fd53785a40539aee11bda5314 Mon Sep 17 00:00:00 2001 From: Synchro Date: Wed, 20 Mar 2013 17:47:00 +0100 Subject: [PATCH] DKIM signing fix from Seph Soliman [via SourceForge](https://sourceforge.net/p/phpmailer/bugs/413/) --- class.phpmailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.phpmailer.php b/class.phpmailer.php index 2be4b8e9..e19775b2 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -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; }