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

Learn more

View all

Sign in to view all badges

Using event.target.submitForm to submit a PDF and XML attachment in a single email.

ltruter
Level 1
Level 1

I have a button on a PDF form which emails a PDF and XML attachment of the current form in two seperate emails. The code is as follows:

event.target.submitForm({cURL:"mailto:" +  "jbloggs@acme.com" +"?subject="+"Request for action " + "&body=Please find attached..." ,cSubmitAs:"XML",cCharset:"utf-8"});

event.target.submitForm({cURL:"mailto:" +  "jbloggs@acme.com" +"?subject="+"Request for action " + "&body=Please find attached..." ,cSubmitAs:"PDF",cCharset:"utf-8"});

This results in 2 seperate emails, when all I need is a single email with two attachments. Is there a way to do this?

1 Reply
radzmar
Level 10
Level 10

As far as I know you can only attach one attachment at once.