Forums

Email Form with Uploaded File as Attachment

dave601 18 Jun, 2008
Hi,

Here is what I am looking to do. I have a form that is pretty basic, just looking for a persons name and email address. I want them to be able to upload a resume and have that resume sent to me as an attachment.

I am having no problems getting the Chronoforms upload feature to work (works great, in fact), but I was wondering if anyone knows of a good script to send that uploaded file as an attachment in an email. I have a little bit of PHP experience and was kind of looking at PHPMailer, but I am not sure if that is the proper tool for what I am looking to do here. Any advice would be greatly appreciated.

Dave
GreyHead 18 Jun, 2008
Hi Dave,

ChronoForms will do this for you out of the box. Just add the file field to your form. More in this FAQ the file will be attached to your email automatically.

Bob
sameer_mhatre512 20 Jun, 2008
Hello Admin,

I am creating one form for job inquiry and i followed the steps you had mentioned in the FAQ's but i was not able to get the file uploaded as well as didn't get any email .attached herewith is the form. can you please have a look at let me know where i am going wrong.


thanks
sameer [file name=jobenquiry.zip size=1540]http://www.chronoengine.com/images/fbfiles/files/jobenquiry.zip[/file]
GreyHead 20 Jun, 2008
Hi sameer_mhatre512,

You *must* put quotes round attribute values in your input tags - otherwise ChronoForms will not find them. You have
<INPUT class=inputbox type=file name=CandidateResume>
please change this to
<input class="inputbox" type="file" name="CandidateResume" />
A couple of other things: your form says that txt files are allowed but they aren't included in the list on the File Uploads tab; and be aware that Validation may not work properly if you have class attributes in your form input tags.

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