3

I am working with WFFM Upload File and was asked to send the file by attaching it in the Email. So I created a custom Save Action that is almost the same with the OOTB Send Email Message except for an additional xml configuration :

 <IncludeAttachments>true</IncludeAttachments>

IncludeAttachments

In my end, it only puts link in the Email and saves the file to the Media Library instead of attaching the files in the Email.

Email attached

Media Library

The above configuration and behavior is based on the link below:

https://sitecorejunkie.com/2014/10/17/turn-off-the-attaching-of-files-in-emails-sent-by-web-forms-for-marketers-in-sitecore/amp/

I am not sure if this works in WFFM 8.1 160523 as some references are now Sitecore.WFFM.Actions.SaveActions.SendMessage instead of Sitecore.Form.Submit.SendMessage.

Please advice me on this.

3

1 Answer 1

4

I think this is now included out of the box with WFFM, no need for custom save action:

  1. Navigate to /sitecore/system/Modules/Web Forms for Marketers/Settings/Actions/Save Actions/Send Email Message item.
  2. In Parameters field add the following:
<IsIncludeAttachments>true</IsIncludeAttachments>
  1. Save and publish changes.

I have it working on Sitecore 8.1 instance.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.