episciences icon indicating copy to clipboard operation
episciences copied to clipboard

[Bug Report] Line break in the middle of an email address when the "To:" header is more than 999 characters

Open davidjpurser opened this issue 1 year ago • 1 comments

Describe the bug When the episcience system sends an email (from the mailing page) to many addresses, there can be a line break in the middle of an email address. Mail programs will not interpret this email address correctly.

From initial testing, it does look like the broken email address receives the email.

To Reproduce Steps to reproduce the behavior:

  1. [journalwebsite]/administratemail/send
  2. Add many email addresses to the To field, such that the total "address
    , ...." string is longer than 999 characters.
  3. Send the email
  4. Receive the email
  5. Look at the header. Notice there is a line break after character 999.
  6. Look at the recipients in a mail program such as Outlook, it misinterprets the line break as a space in the email address. For example, when using the "reply" feature, it will not be able to send to the broken email.

Step 2 may need minor trial and error if it happens the 999th character was not in the middle of an email address (inside the <> part).

Expected behavior The line break should be either side of an email address. For example, insert a line break before every email address that would cause an overflow.

davidjpurser avatar Jan 31 '24 16:01 davidjpurser

Note, this occurs when we email all of our editors at TheoretiCS, it's not just an edge case.

davidjpurser avatar Jan 31 '24 16:01 davidjpurser