Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

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

Avatar

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

Avatar

Level 10

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