]> git.mjollnir.org Git - moodle.git/commitdiff
Mailer handles precedence header
authormoodler <moodler>
Fri, 7 May 2004 03:25:04 +0000 (03:25 +0000)
committermoodler <moodler>
Fri, 7 May 2004 03:25:04 +0000 (03:25 +0000)
lib/phpmailer/class.phpmailer.php

index 6fba6f31922334cfcbb2557574e8ecbb9234ffce..4e6a7079af10a135b803be1e0dbe8ee16cc72ec0 100644 (file)
@@ -79,6 +79,12 @@ class PHPMailer
      */
     var $Subject           = "";
 
+    /**
+     * Sets the Precedence level of this email.  "bulk" will prevent some bounces
+     * @var string
+     */
+    var $Precedence        = "";
+
     /**
      * Sets the Body of the message.  This can be either an HTML or text body.
      * If HTML then run IsHTML(true).
@@ -809,6 +815,10 @@ class PHPMailer
         $result .= $this->HeaderLine("X-Priority", $this->Priority);
         $result .= $this->HeaderLine("X-Mailer", "PHPMailer [version " . $this->Version . "]");
         
+        if ($this->Precedence != "") {
+            $result .= $this->HeaderLine("Precedence", $this->Precedence);
+        }
+
         if($this->ConfirmReadingTo != "")
         {
             $result .= $this->HeaderLine("Disposition-Notification-To",