From fb82854f8c67de33b4b864673dd70cff2787c7d2 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 7 Sep 2012 13:39:40 +0200 Subject: [PATCH] LSformElement :: password : Added bcc feature in mail options --- .../LSattribute/LSattr_html/LSattr_html_password.docbook | 8 ++++++++ .../includes/class/class.LSformElement_password.php | 3 +++ 2 files changed, 11 insertions(+) diff --git a/doc/conf/LSattribute/LSattr_html/LSattr_html_password.docbook b/doc/conf/LSattribute/LSattr_html/LSattr_html_password.docbook index c9904415..30f78b84 100644 --- a/doc/conf/LSattribute/LSattr_html/LSattr_html_password.docbook +++ b/doc/conf/LSattribute/LSattr_html/LSattr_html_password.docbook @@ -165,6 +165,14 @@ + + bcc + + Mettre en BCC un mail systématiquement + (ou plusieurs en les séparant par des virgules). + + + headers diff --git a/public_html/includes/class/class.LSformElement_password.php b/public_html/includes/class/class.LSformElement_password.php index 491f910f..6fbd92c4 100644 --- a/public_html/includes/class/class.LSformElement_password.php +++ b/public_html/includes/class/class.LSformElement_password.php @@ -216,6 +216,9 @@ class LSformElement_password extends LSformElement { else { $headers = array(); } + if ($this -> params['html_options']['mail']['bcc']) { + $headers['Bcc']=$this -> params['html_options']['mail']['bcc']; + } if (sendMail( $mail, $this -> sendMail['subject'],