Expand my Community achievements bar.

Multiple Email addresses

Avatar

Former Community Member
How does one send an email to multiple recipients using the "Email with Attachments" QPac?



Separating email addresses via ";" throws an error. Using a comma as a delimiter only sends to the first address.

There are 4 specific email address the email needs to go to, so putting one each in the TO, CC, and BCC won't work either.

I'd rather not, but the only thing I can do is place 2 Email QPacs with 2 email address each.



Any ideas?
2 Replies

Avatar

Level 9
Hi Michael

EmailWithAttachments uses JavaMail as the api, which in turn uses InternetAddress class to parse the address string into an array of addresses.

http://java.sun.com/products/javamail/javadocs/index.html

This accepts a comma separated list.

(Outlook uses semi-colons.)



I'm also 90% sure that I've used a comma separated list myself, although I haven't verified this.



Are you sure that it's not some other problem - eg the second email address is incorrectly spelled, you're using a space after the comma, email addresses outside your domain are being restricted by the SMTP server, the inbound email is being marked as junk mail, etc.



Good luck,

Howard

http://www.avoka.com

Avatar

Former Community Member
On further review, I found out you are correct that a comma can be used.

During my testing, I had the same email for both addresses - Outlook or Exchange must ignore/remove duplicates. Changing the second one to something else worked.



Thanks!