From 3bcf3442b1df8ac6a5a279d57eb13814aeb32add Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 2 Aug 2006 04:38:53 +0000 Subject: [PATCH] The headers field will now work a little better --- mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail.php b/mail.php index de1576d..605e67a 100644 --- a/mail.php +++ b/mail.php @@ -307,7 +307,7 @@ class Mail // attach additional headers $this->headers = $this->registry->modules['functions']->convert_line_breaks($this->headers, $this->delim); - $this->headers .= "From: \"{$this->fromname}\" <{$this->from}>" . $this->delim; + $this->headers .= ((!preg_match("#{$this->delim}$#", $this->headers) AND $this->headers != '') ? "\n" : '') . "From: \"{$this->fromname}\" <{$this->from}>" . $this->delim; $this->headers .= "Return-Path: {$this->from}" . $this->delim; $this->headers .= "X-Mailer: ISSO Mail Framework \$Revision$" . $this->delim; $this->headers .= "MIME-Version: 1.0" . $this->delim; -- 2.43.5