[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 ;
- [Noalyss-commit] [noalyss] branch master updated (709bc17 -> 2fca23e), Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 03/73: typo, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 02/73: Improve ##0001905 company parameter, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 04/73: comptability version 7.0, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 13/73: SQL file for action, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 07/73: cosmetic col. alignment, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 11/73: Sendmail : improve , add abilities to add headers,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 23/73: remove debug info, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 21/73: Fix : warning when Acc_Param not set properly for BANK, CASH,, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 19/73: Merge branch 'dev-8104', Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 35/73: improve cosmetic, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 01/73: Nouveau logo, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 09/73: CSS : position dashboard and ledger name, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 12/73: Cosmetic, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 22/73: Fix bug : not TVA asked, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 20/73: Cosmetic : place of login, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 31/73: Task #0001961: Devise, cosmetic align number, Dany De Bontridder, 2021/05/28