noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 11/73: Sendmail : improve , add abilities to


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 11/73: Sendmail : improve , add abilities to add headers
Date: Fri, 28 May 2021 05:26:18 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit af061c62b53145a2754eb2684038446119a690e9
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Apr 9 23:56:55 2021 +0200

    Sendmail : improve , add abilities to add headers
---
 include/lib/sendmail_core.class.php | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/include/lib/sendmail_core.class.php 
b/include/lib/sendmail_core.class.php
index b62061d..35f49be 100644
--- a/include/lib/sendmail_core.class.php
+++ b/include/lib/sendmail_core.class.php
@@ -107,6 +107,16 @@ class Sendmail_Core
             }
         }
     }
+    
+    /**
+     * 
+     * Function to override if supplemental header are needed
+     * @return string
+     */
+    function add_supplemental_header()
+    {
+        return '';
+    }
     /**
     * create the message before sending
     */
@@ -125,6 +135,7 @@ class Sendmail_Core
         // main header (multipart mandatory)
         $this->header = "From: " . $this->from . $eol;
         $this->header .= "MIME-Version: 1.0" . $eol;
+        $this->header .= $this->add_supplemental_header();
         $this->header .= "Content-Type: multipart/mixed; boundary=\"" . 
$separator . "\""  ;
         //$headers .= "Content-Transfer-Encoding: 7bit" . $eol;
         //$headers .= "This is a MIME encoded message." . $eol ;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]