Greetings! Is there a way to attach a few PDF's (or other file attachments) once the submit button is pressed? My current form emails the client with all data present and I'd like either a JPEG or PDF to be attached with this email.
Thanks!
Thanks!
Hi scottrwn,
there are some posts here talking about attaching files to email, please run a quick search and let mek now if you can't find any!
Regards
Max
there are some posts here talking about attaching files to email, please run a quick search and let mek now if you can't find any!
Regards
Max
Well, I'm a little confused after reading some posts on attachments. Basically I have two PDF's in a folder (eg. mysite.com/pdf/) and when the client presses SUBMIT on the form, I'd like the email that's sent (to both the client and myself) to contain two PDF attachments (including the email text itself).
Does that make sense?
Thanks for your help! 😀
Does that make sense?
Thanks for your help! 😀
Hi scottrwn,
This makes all sense, did you find any posts about attaching custom files to the email ? do you have the links ?
Max
This makes all sense, did you find any posts about attaching custom files to the email ? do you have the links ?
Max
No, I haven't. I've tried a few HTML/PHP code solutions, but nothing works. I've already taken action at an alternative route due to my client's demands.
Thanks anyway,
Thanks anyway,
Hi Scott,
ok, this is the code to go in the onsubmit before email box to add more attachments:
Cheers
Max
ok, this is the code to go in the onsubmit before email box to add more attachments:
<?php
$MyUploads =& CFUploads::getInstance($MyForm->formrow->id);
$MyUploads->attachments[] = 'file path'; // add complete file path here
?>
Cheers
Max
hi folks,
I have searched the entire forum, but I still do not get it right.
- I have enabled Upload file, and inserted a file form element, so I want to SEND a file as attachement in the e-mail that goes to e.g Support department, and as copy to the submitter.
I tried to reset the e-mail settings, and re-make it but no luck.
my serverarea is writeable etc. But my main issue is not that, but the thing is that I want the file 8no matter what file, jpg, doc etc) to be attached in the e-mail.
Please help and advice me. Im going live tomorrow...
I have searched the entire forum, but I still do not get it right.
- I have enabled Upload file, and inserted a file form element, so I want to SEND a file as attachement in the e-mail that goes to e.g Support department, and as copy to the submitter.
I tried to reset the e-mail settings, and re-make it but no luck.
my serverarea is writeable etc. But my main issue is not that, but the thing is that I want the file 8no matter what file, jpg, doc etc) to be attached in the e-mail.
Please help and advice me. Im going live tomorrow...
This topic is locked and no more replies can be posted.
