View Issue Details

IDProjectCategoryView StatusLast Update
0019655mantisbtemailpublic2024-06-05 10:52
Reportercdijoux Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Summary0019655: Email content line length + html
Description

Hello,

I think that the email line_length must be a parameter, not hardcoded and set to "80".
Same thing for email in HTML format or not (usefull to change if we use a Wysiwyg editor for descriptions and bugnotes).

core/email_api.php :
@@ -967,0 +967,0 @@

  • $mail->IsHTML( false );
  • $mail->WordWrap = 80;
  • $mail->IsHTML( config_get("email_is_html", false );
  • $mail->WordWrap = config_get("email_word_wrap", 80);
TagsNo tags attached.

Activities

00

00

2024-06-05 10:52

reporter   ~0068952

I think the 80 length is tied to the email text format. So the code may be:

if (config_get("email_is_html", false ) ) {
$mail->IsHTML( true) ;
} else {
$mail->IsHTML( false) ;
$mail->WordWrap = 80;
}

But it may be great to parameter it as 80 caracters is sometimes too short in text email while this historical length limit may have not more sens now (so, it may even be deleted?!).