Forums

Email attachments

scottrwn 25 Jun, 2009
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!
Max_admin 26 Jun, 2009
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
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
scottrwn 26 Jun, 2009
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! 😀
Max_admin 28 Jun, 2009
Hi scottrwn,

This makes all sense, did you find any posts about attaching custom files to the email ? do you have the links ?

Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
scottrwn 29 Jun, 2009
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,
Max_admin 30 Jun, 2009
Hi Scott,

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
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
thomasjojo 07 Oct, 2009
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...
GreyHead 07 Oct, 2009
Hi thomasjojo,

Do you have attachments enabled in the Email Setup Properties box?

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