LSformElement :: password : Added bcc feature in mail options

This commit is contained in:
Benjamin Renard 2012-09-07 13:39:40 +02:00
parent 417babf7e7
commit fb82854f8c
2 changed files with 11 additions and 0 deletions

View file

@ -165,6 +165,14 @@
</listitem>
</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>

View 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'],