Expand my Community achievements bar.

Modifying Name of XML E-Mail Attachment

Avatar

Former Community Member

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/