Some fixes for confirmation emails on sites with long names
- include a HTML version of the email
- wrap all text emails at 79 characters now, not 70
I think quoting of text based emails on 80-character terminals
would be pretty rare these days
This commit is contained in:
+4
-2
@@ -1281,7 +1281,7 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml="", $a
|
||||
|
||||
$mail->AddAddress("$user->email", fullname($user) );
|
||||
|
||||
$mail->WordWrap = 70; // set word wrap
|
||||
$mail->WordWrap = 79; // set word wrap
|
||||
|
||||
if (!empty($from->precedence)) {
|
||||
$mail->Precedence = $from->precedence; // set precedence level eg "bulk" "list" or "junk"
|
||||
@@ -1361,7 +1361,9 @@ function send_confirmation_email($user) {
|
||||
$message = get_string("emailconfirmation", "", $data);
|
||||
$subject = get_string("emailconfirmationsubject", "", $site->fullname);
|
||||
|
||||
return email_to_user($user, $from, $subject, $message);
|
||||
$messagehtml = text_to_html($message, false, false, true);
|
||||
|
||||
return email_to_user($user, $from, $subject, $message, $messagehtml);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user