Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

email BCC with groovy

Torbjörn Richter May 8, 2019

Hi

Im trying to send custom emails with groovy using BCC only. I dont want anyone to know about the other recipients.

But it seems like the sendMail() function requires a 'normal' recipient.

 

this works fine but then the Bcc emails will include blabla as recipient. 

Email email = new Email("blabla@bla.com");
email.setBcc("1234@bla.com,5678@bla.com")

 

this doesnt work but its what I would like to work

Email email = new Email();
email.setBcc("1234@bla.com,5678@bla.com")

 

any ideas how to achieve this

 

1 answer

0 votes
Ismael Jimoh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 8, 2019

Hi @Torbjörn Richter 

I have not tested this so I cannot speak much for this but I do have a suggestion to have a no-reply@bla.com added as a placeholder in the To field if it is really required and then you specify the emails you want in the BCC.

Though users would see whom was included in the to field, since it is a no-reply, they should be able to ignore it.

Anyone with better suggestions should please chip in here as I am not sure how best to handle this.

Torbjörn Richter May 8, 2019

Thanks Ismael but ive already thought of that and it wont look good because it will look very confusing for the customer if they receive an email that is addressed to another company, or my company in this case. They will think they got an email they were not supposed to get.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events