Hello,
I am trying to create a form for a photo submission for one of our 3 newsletters - http://www.fstopgear.com/now/newsletter/56-newsletter/173-photo-newsletters-submission-form
I have a couple of questions: First I am having a hard time getting the images that i have asked the users to upload to attach to the email that the form sends, I am new to form & php (although I know a few other programming languages so I am fine with actually learning) but would like to know the syntax.
Second: what is the best way to setup an variable "email to". I would like the "email to" to be determined by a drop down - we have 3 newsletters and depending on which newsletter the contributor is submitting to, I would like the email to go to a different email address. ie. if they select the APN it should go to apn@ if they select the NLPN is should go to the nlpn@
Here is a look at how things are now:
General:

Email settings:

My Email template:

File Uploads:

I have uploads enabled and my file size limit in php is 8mb
Thanks in advance for your help.
I am trying to create a form for a photo submission for one of our 3 newsletters - http://www.fstopgear.com/now/newsletter/56-newsletter/173-photo-newsletters-submission-form
I have a couple of questions: First I am having a hard time getting the images that i have asked the users to upload to attach to the email that the form sends, I am new to form & php (although I know a few other programming languages so I am fine with actually learning) but would like to know the syntax.
Second: what is the best way to setup an variable "email to". I would like the "email to" to be determined by a drop down - we have 3 newsletters and depending on which newsletter the contributor is submitting to, I would like the email to go to a different email address. ie. if they select the APN it should go to apn@ if they select the NLPN is should go to the nlpn@
Here is a look at how things are now:
General:

Email settings:

My Email template:

File Uploads:

I have uploads enabled and my file size limit in php is 8mb
Thanks in advance for your help.
HI druid,
In the file uploads tab you must enter the max and min sizes {-} will not work.
The question about variable email addresses was answered yesterday in the forms here (and asked by someone else an hour or so ago).
Bob
PS I strongly recommend that you do *not* use the Dynamic From Email field until you have made sure that your form works (and even then you are probably better off not using it).
PPS Have you seen Emannuel's Image Plugin which might be useful to you?
In the file uploads tab you must enter the max and min sizes {-} will not work.
The question about variable email addresses was answered yesterday in the forms here (and asked by someone else an hour or so ago).
Bob
PS I strongly recommend that you do *not* use the Dynamic From Email field until you have made sure that your form works (and even then you are probably better off not using it).
PPS Have you seen Emannuel's Image Plugin which might be useful to you?
Ok, got the info from FAQ 31, and I can make that work. I did do a quick search, must have asked for the wrong thing.
As for the file attachments / image attachments. I have not seen Emannuel's Image Plugin, can you point me in the right direction? I did update file uploads to: file_1:{9999999-1},file_10:{99999999-1} but still no joy on getting the files as attachments. I am not trying to store them a database, just send them along.
As for the file attachments / image attachments. I have not seen Emannuel's Image Plugin, can you point me in the right direction? I did update file uploads to: file_1:{9999999-1},file_10:{99999999-1} but still no joy on getting the files as attachments. I am not trying to store them a database, just send them along.
Hi druid,
Sorry, I missed that you had no file types specified either - please look at the [b[color=#BF0000]]bold red example[/color][/b] on the File Uploads tab.
Bob
Sorry, I missed that you had no file types specified either - please look at the [b[color=#BF0000]]bold red example[/color][/b] on the File Uploads tab.
Bob
ok, did that, but now I am not getting emails at all. before I was getting emails with not attachments. must be something hidden I am not seeing, maybe there is a server setting or something I should check?
Hi druid,
You need to use the **names** of your file upload inputs in the File Uploads tab
Bob
You need to use the **names** of your file upload inputs in the File Uploads tab
file_1:zip|jpg|png|tif{9999999-1},file_10:zip|jpg|png|tif{99999999-1}
<input class="cf_fileinput" size="20" id="file_1" name="photog_photo" type="file" />Bob
Thanks for all the help, but it still just isn't working. I actually saw that you replied to someone else with that and it worked for her/him so I made that change, but still no joy. I tried looking at the upload directory permissions, every php setting I could think of, but still nothing. It only seems to be an issue with forms that have an attachment, so I guess I will work on it the old fashion way and do some hand coding.
Thanks anyways.
Thanks anyways.
Hi druid,
disabling uploads makes it sending emails ? if so then show me your uploads tab screenshot with your form code please!🙂
Regards
Max
disabling uploads makes it sending emails ? if so then show me your uploads tab screenshot with your form code please!🙂
Regards
Max
Hi druid,
The backup form you posted earlier works OK with a little cleaning up.
Correctly complete the file upload info (see the earlier posts).
Remove the odd code snippet in one of the OnSubmit boxes
Change the Upload names in the email templates, the Form HTML and the File Uploads tab so that they are all the same (I also changed the input ids but I don't think that's strictly necessary).
Bob
PS I **strongly recommend** that you do not use a Dynamic From Email field - at least until the form is completely tested and working. Using this may cause your ISP, or the recipient's ISP to treat the email as spam.
The backup form you posted earlier works OK with a little cleaning up.
Correctly complete the file upload info (see the earlier posts).
Remove the odd code snippet in one of the OnSubmit boxes
Change the Upload names in the email templates, the Form HTML and the File Uploads tab so that they are all the same (I also changed the input ids but I don't think that's strictly necessary).
Bob
PS I **strongly recommend** that you do not use a Dynamic From Email field - at least until the form is completely tested and working. Using this may cause your ISP, or the recipient's ISP to treat the email as spam.
Thanks, I got it to work now.
The issue was the extra code in the on submit. I put that piece of code in there as i wanted it to create a way to direct the email to the proper person based on the newsletter she/he is contributing to. I was using the info in http://www.chronoengine.com/faqs.html but I must have missed something in the instructions.
Cheers,
Druid
The issue was the extra code in the on submit. I put that piece of code in there as i wanted it to create a way to direct the email to the proper person based on the newsletter she/he is contributing to. I was using the info in http://www.chronoengine.com/faqs.html but I must have missed something in the instructions.
Cheers,
Druid
Hi druid,
That could well be, the info in the FAQs dates back to an earlier version of ChronoForms. There have been a couple of posts in the last few days with the updated code.
Bob
That could well be, the info in the FAQs dates back to an earlier version of ChronoForms. There have been a couple of posts in the last few days with the updated code.
Bob
I'm having the same problem with the file attachment (in this case it will be more than just images, adding documents mostly), but I'm not quite sure where to look at. All the settings have been checked as for PHP allowing uploading and having a 4MB upload limit. This is my file upload string: file_24:doc|rtf|pdf|odf|jpg|gif|tiff{4000-0}
Please let me know of any information required for understanding the situation. Regards!
Please let me know of any information required for understanding the situation. Regards!
Hi waterbender,
Which problem are you having? - there are several mentioned in this thread.
Bob
Which problem are you having? - there are several mentioned in this thread.
Bob
I'm feel a little dumb here...
I was checking upon the id of the input and not the name... the one that should match is the name, not the id.
Usually you identify things by their unique id don't you? Anyway, it works, that's great! This has simplified my life a ton!
I was checking upon the id of the input and not the name... the one that should match is the name, not the id.
Usually you identify things by their unique id don't you? Anyway, it works, that's great! This has simplified my life a ton!
Usually you identify things by their unique id don't you?
this usually happens in JS but not for PHP or other functions!Cheers
Max
This topic is locked and no more replies can be posted.
