When pasting multiple email addresses from for example Excel, Notepad or LibreOffice, into the WebApp TO: field, everything that is pasted is considered the email address. The expected behaviour would be that WebApp splits the pasted addresses in seperate email addresses. Such behaviour occurs in other mail clients such as Outlook/Gmail etc. Example: User 1 <firstname.lastname@example.org> User 2 <email@example.com> User 3 <firstname.lastname@example.org>
There are other delimiters being used as well, which we should be able to deal with.
- Copy multiple recipients, which are separated by either spacing, commas or line feed : e.g. email@example.com firstname.lastname@example.org email@example.com. or User 1 <firstname.lastname@example.org> User 2 <email@example.com> User 3 <firstname.lastname@example.org>
- Create a new mail item (or any other item requiring recipients to be filled in, e.g. MR).
- Paste these recipients in one of the recipient fields.
result: mail addresses are resolved into a single recipient.
- mail addresses are resolved separately
- if the input contains an email address, treat all input as the email address and assume there are no user names that need resolving
- Valid delimiters are: , and ; and spaces
- If the email address is enclosed in < >, treat the text before as the 'display name' and the last bracket as the delimiter
Note: currently recipients are only resolved correctly separately if semi colons are used (e.g. email@example.com; firstname.lastname@example.org).
Examples to test with:
email@example.com firstname.lastname@example.org email@example.com
firstname.lastname@example.org, email@example.com, firstname.lastname@example.org
email@example.com; firstname.lastname@example.org; email@example.com
User 1 <firstname.lastname@example.org>; User 2 <email@example.com>; User 3 <firstname.lastname@example.org>;
User 1 <email@example.com>, User 2 <firstname.lastname@example.org>, User 3 <email@example.com>
User 1 <firstname.lastname@example.org> User 2 <email@example.com> User 3 <firstname.lastname@example.org>
All of these should result in the same recipients (email addresses at least).