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
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.