Automation Email Script
Posted: Wed Aug 05, 2009 6:32 pm
Whenever the client receives the email the also receive the '\n's as well example:
\nDear fadsfasd,\n\nThe password for your account (misfit399)\n has been changed to: giving^cop\n\nSincerely,
I don't know what I'm doing wrong.....thanks for any help in advance!!!!
// password retrieval email function ///////////////////////////////////////////
function send_mail_forgot($sendto, $first_name, $login, $newpsswd){
global $CFG, $language;
$subject = 'Account Update';
$body = 'The password for your account ('.filter_in($login).')';
$body .= '\n has been changed to: '.$newpsswd;
$message .= '\n'.$language['EMAIL_SALUTATION'].' '.filter_in($first_name).',\n\n'.
$body .='\n\n'.$language['EMAIL_SIGNATURE'].'\n';
$from = 'From: '.$CFG->site['contact_email'];
return @mail($sendto, $subject, $message, $from);
\nDear fadsfasd,\n\nThe password for your account (misfit399)\n has been changed to: giving^cop\n\nSincerely,
I don't know what I'm doing wrong.....thanks for any help in advance!!!!
// password retrieval email function ///////////////////////////////////////////
function send_mail_forgot($sendto, $first_name, $login, $newpsswd){
global $CFG, $language;
$subject = 'Account Update';
$body = 'The password for your account ('.filter_in($login).')';
$body .= '\n has been changed to: '.$newpsswd;
$message .= '\n'.$language['EMAIL_SALUTATION'].' '.filter_in($first_name).',\n\n'.
$body .='\n\n'.$language['EMAIL_SIGNATURE'].'\n';
$from = 'From: '.$CFG->site['contact_email'];
return @mail($sendto, $subject, $message, $from);