Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Send mail to multiple recipients

Featured Replies

I have not been succesful in sending mails to multiple recipients using a field containing a comma separated list. I tried modifying the script by adding .parse(to, true) to InternetAddress in msg.setRecipient, but to no avail. Any help/hints would be much appreciated.

Have you considered placing a send-single command within a loop which get the next email address from a list held in a variable?

  • Author

Yes, I did. This is actually my present work-around, but it does mean that a recipient cannot rapidly tell from the email distribution whether others have been addressed too. (In my work-around this information therefore is added to the email subject line, but it looks a bit messy.)

I just thought that Scriptmaster was advertised as providing support for multiple recipients (which I presumed to be using a comma separated list), but unfortunately I cannot get it going with the standard Scriptmaster calls.

you have to pass an array of InternetAddresses, not a comma separated list.

InternetAddress[] myList=//create the list....

message.addRecipients(Message.RecipientType.TO,myList);

  • 2 weeks later...
  • Author

That was a good hint. Much obliged.

As I am using a FM field with a list as the addressees, the coding needed to be a bit more elaborate:

String mailAddressTo=(to);

String[] ToAddresses = mailAddressTo.split("n") ;

InternetAddress[] mailAddress_TO = new InternetAddress [ToAddresses.length] ;

for (int j=0; j

mailAddress_TO[j] = new InternetAddress(ToAddresses[j]);

}

msg.addRecipients(Message.RecipientType.TO, mailAddress_TO);

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.