mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
LSformElement::password : Added mail headers parameters
This commit is contained in:
parent
a516c5be74
commit
d74b6a6200
2 changed files with 17 additions and 1 deletions
|
@ -164,6 +164,15 @@
|
|||
l'attribut.</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>headers</term>
|
||||
<listitem>
|
||||
<simpara>Un tableau de type clé/valeur ou la clé est le nom d'un header
|
||||
à ajouter au mail et la valeur est la valeur de l'header en question.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
|
|
|
@ -210,10 +210,17 @@ class LSformElement_password extends LSformElement {
|
|||
if (checkEmail($mail,NULL,true)) {
|
||||
$this -> attr_html -> attribute -> ldapObject -> registerOtherValue('password',$this -> sendMail['pwd']);
|
||||
$msg = $this -> attr_html -> attribute -> ldapObject -> getFData($this -> sendMail['msg']);
|
||||
if (isset($this -> params['html_options']['mail']['headers'])) {
|
||||
$headers = $this -> params['html_options']['mail']['headers'];
|
||||
}
|
||||
else {
|
||||
$headers = array();
|
||||
}
|
||||
if (sendMail(
|
||||
$mail,
|
||||
$this -> sendMail['subject'],
|
||||
$msg
|
||||
$msg,
|
||||
$headers
|
||||
)) {
|
||||
LSsession :: addInfo(_('Notice mail sent.'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue