Forums

Sending attachment by mail

martinneke 17 Feb, 2013
I inserted a file upload-element but don't really know how to set this up so it really sends an attachment.
Is there a tutorial?
GreyHead 17 Feb, 2013
HI martinneke,

Yes there is, please check the FAQs.

Bob
martinneke 17 Feb, 2013
I already did but can't find anything about the file upload-button.
martinneke 20 Feb, 2013
I've seen this FAQ but even then...
In Chronoforms it's that easy to create and edit a form just by drag and drop but including an attachment some code has to be added???

Well... since I don't have any idea what I'm doing I just added the custom code action before the Email action and changed all highlighted to bijlage. Still it doesn't send any attachment with by mail. (also changed the fieldname to bijlage and in the Email-Template I added {bijlage}.

I don't understand why and how it's possible to use a name for the attachment as I don't know what file a user is uploading. :?

Please can you provide the right code?
GreyHead 20 Feb, 2013
Hi martinneke,

You need to use the name of the file upload input from your form.

Bob
martinneke 20 Feb, 2013
That name is bijlage so I changed all the highlighted code to bijlage. I even changed it in the email-template but no attachment is send.
GreyHead 20 Feb, 2013
Hi martinneke,

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
GreyHead 21 Feb, 2013
Hi martinneke,

In the File Upload | Files box you have jpg, that needs to be bijlage:jpg or perhaps bijlage:jpg-png

Please check if that solves the problem.

Bob
martinneke 21 Feb, 2013
Almost... The Attachments fields name needed to be bijlage too.
Thanx Bob, it works great now!!!

Martin
This topic is locked and no more replies can be posted.