Method Base_User_LoginCommon::send_mail_with_password in Base/User/Login/LoginCommon_0.php
Global signature applies only to emails sent from RoundCube. You can modify method mentioned above.
Here is the code responsible for the footer in roundcube
$footer = Variable::get('crm_roundcube_global_signature',false);
if($b['type']=='plain') {
$b['body'] .= "\r\n".strip_tags(preg_replace('/<[bh]r\s*\/?>/i',"\r\n",$footer));
} else {
$b['body'] .= '<br />'.$footer;
}
in your case it'll be something like this:
public static function send_mail_with_password($username, $pass, $mail, $recovery=false) {
$url = get_epesi_url();
$subject = __('Your account at %s',array($url));
$header = Variable::get('add_user_email_header','');
$body = ($header?$header."\n\n":'');
if ($recovery)
$body .= __( 'This e-mail is to inform you that your password at %s has been reset.', array($url));
else
$body .= __( 'This e-mail is to inform you that a user account was setup for you at: %s.', array($url));
$body .= "\n".
__('Your username is: %s', array($username))."\n".
__('Your password is: %s', array($pass))."\n\n".
__('For security reasons it is recommened that you log in immediately and change your password.')."\n\n".
__('This e-mail was generated automatically and you do not need to respond to it.');
$footer = Variable::get('crm_roundcube_global_signature',false);
if ($footer)
$body .= "\r\n".strip_tags(preg_replace('/<[bh]r\s*\/?>/i',"\r\n",$footer));
return Base_MailCommon::send_critical($mail, $subject, $body);
// or in html format
if ($footer)
$body .= '<br />'.$footer;
return Base_MailCommon::send_critical($mail, $subject, $body, null, null, true); // last true stands for html=true
}
All your changes will be lost after update.
Regards,
Adam