Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Email Button BCC Code

Avatar

Level 3

I have a form all set up and working perfectly with an email submit button, but I need to add a bcc address, and I have no coding experience. Can someone please send me the code I need to use??

This is the current code:  target="mailto:erc.environment@gov.ab.ca?subject=Contraventiont Report"

Thank-you!!!

5 Replies

Avatar

Level 3

Thanks radzmar, but when I try to save the form with your code it comes up with an XML Source Error "Xml parsing error: not well-formed (invalid token)...". I can ignore it and continue, but it doesn't put in the bcc address properly (it puts the whole bcc chunk of code in the address bar). Is there something I have to change in a different line of code?

Avatar

Level 10

Ahh yes, your're right, a single ampersand is not allowed in XML so you have to mask it with the entity &


target="mailto:erc.environment@gov.ab.ca?bcc=someoneelse@gov.ab.ca&subject=Contraventiont Report"


Avatar

Level 3

Now it seems to think the entire line is one email address... I can save everything, but I'm getting this error when I test the button:

"Microsoft Outlook does not recognize "erc.environment@gov.ab.ca?bcc=someoneelse@gov.ab.ca&subject=Contraventiont Report". Select the address to use."

Sorry to be such a pain...

Avatar

Level 10

I cannot reproduce your problem at my end.

Can you please share your form?

Just upload it (DropBox etc…) and post a link here, thanks.