Fix sender email when sending a password remind
This commit is contained in:
parent
f3b89d9d39
commit
d796f403a9
@ -108,7 +108,7 @@ class CMailFile
|
||||
* @param string $css Css option
|
||||
* @param string $trackid Tracking string (contains type and id of related element)
|
||||
* @param string $moreinheader More in header. $moreinheader must contains the "\r\n" (TODO not supported for other MAIL_SEND_MODE different than 'phpmail' and 'smtps' for the moment)
|
||||
* @param string $sendcontext 'standard', 'emailing', ...
|
||||
* @param string $sendcontext 'standard', 'emailing', ... (used to define with sending mode and parameters to use)
|
||||
*/
|
||||
function __construct($subject,$to,$from,$msg,$filename_list=array(),$mimetype_list=array(),$mimefilename_list=array(),$addr_cc="",$addr_bcc="",$deliveryreceipt=0,$msgishtml=0,$errors_to='',$css='',$trackid='',$moreinheader='',$sendcontext='standard')
|
||||
{
|
||||
|
||||
@ -6,6 +6,7 @@ Permission=Permission
|
||||
Permissions=Permissions
|
||||
EditPassword=Edit password
|
||||
SendNewPassword=Regenerate and send password
|
||||
SendNewPasswordLink=Send link to reset password
|
||||
ReinitPassword=Regenerate password
|
||||
PasswordChangedTo=Password changed to: %s
|
||||
SubjectNewPassword=Your new password for %s
|
||||
|
||||
@ -1784,7 +1784,7 @@ class User extends CommonObject
|
||||
*
|
||||
* @param User $user Object user that send email
|
||||
* @param string $password New password
|
||||
* @param int $changelater 1=Change password only after clicking on confirm email
|
||||
* @param int $changelater 0=Send clear passwod into email, 1=Change password only after clicking on confirm email. @TODO Add method 2 = Send link to reset password
|
||||
* @return int < 0 si erreur, > 0 si ok
|
||||
*/
|
||||
function send_password($user, $password='', $changelater=0)
|
||||
@ -1859,7 +1859,7 @@ class User extends CommonObject
|
||||
$mailfile = new CMailFile(
|
||||
$subject,
|
||||
$this->email,
|
||||
$conf->notification->email_from,
|
||||
$conf->global->MAIN_MAIL_EMAIL_FROM,
|
||||
$mesg,
|
||||
array(),
|
||||
array(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user