Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Email Button BCC Code

Avatar

Avatar
Validate 1
Level 2
natalies3171885
Level 2

Likes

4 likes

Total Posts

38 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 2
natalies3171885
Level 2

Likes

4 likes

Total Posts

38 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
natalies3171885
Level 2

28-10-2015

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!!!

Accepted Solutions (0)

Answers (5)

Answers (5)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

02-11-2015

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.

Avatar

Avatar
Validate 1
Level 2
natalies3171885
Level 2

Likes

4 likes

Total Posts

38 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 2
natalies3171885
Level 2

Likes

4 likes

Total Posts

38 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
natalies3171885
Level 2

28-10-2015

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

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

28-10-2015

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

Avatar
Validate 1
Level 2
natalies3171885
Level 2

Likes

4 likes

Total Posts

38 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 2
natalies3171885
Level 2

Likes

4 likes

Total Posts

38 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
natalies3171885
Level 2

28-10-2015

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

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

28-10-2015

Try


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