how to crash CC & BCC lists in outgoing email

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 1828
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

how to crash CC & BCC lists in outgoing email

Post by Jaymer »

Learned something today...

If you have an email, with a reference field to select multiple CCs, then this does not apply. The LIST_LINE function will build your CC/BCC string that the Notification needs.

But, another way to send a CC list would be to just have a field, say 250 chars, and let a user type in email addresses. Better yet, PICKing them or having a SystemSettings field for the CC list is easier (like, if on every Refund email, you also copied/BCC'd the owner & accountant, for example).
OK, so if you have a list that can be modified, you can separate the Emails with SEMI-COLONS:
ex: [email protected]; [email protected]

this is ok: this will fail: (where the underline at the end represents a trailing space

yes, that little unseen space will cause this error inthe Server output window:

Code: Select all

2020-03-05 19:55:42,034 ERROR AAA#jaymer -One or more CC addresses are invalid:java.lang.ArrayIndexOutOfBoundsException 0
So that took a little figuring out...the client started wondering why his CC's were not getting any emails after they recently made a change.
Fixed it with a rule to TRIM when its changed.

--> JaymerTip Send Emails to CC & BCC
Click Here to see a collection of my tips & hacks on this forum? Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply