LSformElement :: password : Added bcc feature in mail options
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 7 Sep 2012 11:39:40 +0000 (13:39 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 7 Sep 2012 11:39:40 +0000 (13:39 +0200)
doc/conf/LSattribute/LSattr_html/LSattr_html_password.docbook
public_html/includes/class/class.LSformElement_password.php

index c990441..30f78b8 100644 (file)
       </varlistentry>
 
       <varlistentry>
+        <term>bcc</term>
+        <listitem>
+          <simpara>Mettre en <emphasis>BCC</emphasis> un mail systématiquement
+          (ou plusieurs en les séparant par des virgules).</simpara>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
         <term>headers</term>
         <listitem>
           <simpara>Un tableau de type clé/valeur ou la clé est le nom d'un header
index 491f910..6fbd92c 100644 (file)
@@ -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'],