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

Modifying Name of XML E-Mail Attachment

Hey all

I need to know how I can change the name of the xml-attachment using the submit function.


My current code looks as follows:

<event activity="click" name="event_click">

<submit format="xml" target="mailto:example@example.de?subject=test&body=text" textEncoding="UTF-8">

</event>

Currently the attached xml-file is automatically named “filename_Daten.xml”.

The goal is to generate the filename dynamically depending on certain values.

Thanks for helping me.

1 Reply

Avatar

Level 2

As far as i know you can't change the File name using Adobe scripts; however it is possible if you submit the form to a server-side script such as ASP.net, that can parse the submission data and inject it into an SMTP message.

For online examples:

http://www.pdfemail.net/examples/