Forums

Attaching the same file to every e-mail

TwoArmedBandit 17 Sep, 2011
Hi

I'm planning to move from a legacy version of CF (3.1 RC5) to V4. Everything looks great with the new version but I have one question:

One of my forms is a pricing request form. When the user submits the form it sends them an E-mail with a PDF pricelist attached. The pricelist is the same one every time, it's not a file uploaded as part of the form completion process, and therefore doesn't conform to a field name.

Can V4 handle this? How do I tell it which file to attach to every E-mail? I think Max gave me some PHP code in the last form which was added to the 'On submit code - before sending E-mail' box.

Thanks in advance.

Colin
GreyHead 17 Sep, 2011
Hi Colin,

You can probably do it with a Custom Code action to add the file link into the form files array. It might be simpler to try my custom Email [GH] action - that will allow you to specify a file path as an email attachment.

Bob
TwoArmedBandit 17 Sep, 2011
That works really well. Thanks for that.
This topic is locked and no more replies can be posted.