karmacriminal Posted June 14, 2003 Posted June 14, 2003 I am using Surefires Form to Mail PHP Script found here: Script I FINALLY got this to work but am new to PHP and have a couple question... 1 - What variables would I use in my form to give my email a subject Line? 2 - How do I use the file upload part of the script? What variables would I use? Thanks in advance Quote
karmacriminal Posted June 16, 2003 Author Posted June 16, 2003 I guess if I just read a little I could figure it out. I answered both questions. Quote
Ojster Posted June 19, 2003 Posted June 19, 2003 Hello, An interesting and free form script is BizMail: http://www.bizmailform.com/ It has many functions so you won't need any PHP knowledge. Best regards, Peter Quote
DoubleM Posted June 25, 2003 Posted June 25, 2003 It has many functions so you won't need any PHP knowledge. heh - you don't need to know php because it's a CGI script. But I'll look at it to see if it can do the things I need. I actually have a similar question about surefire's script. It works great for the basics, but I'm wondering if it can do 2 additional things: 1) Attach a file to the email (not upload it to my webserver) 2) Add an input field to the subject line. For instance - the user enters in his/her name in the NAME field. Then I get the email with the subject of: Feedback form from NAME Is this possible? Quote
surefire Posted June 25, 2003 Posted June 25, 2003 For instance - the user enters in his/her name in the NAME field. Then I get the email with the subject of: Feedback form from NAMEYes. You just have to go into the code of the script and add the variable into the spot where you see the mail() function. That's where the rubber meets the road, so to speak. 1) Attach a file to the email (not upload it to my webserver) I'll give this a try since others have asked the same thing. It is written to make this happen, but I haven't put it into use. Lots of folks think I wrote the script... but I didn't... I've made some improvements to the original one. I'll test it out tonight. Quote
karmacriminal Posted June 27, 2003 Author Posted June 27, 2003 hi Surefire, Have you had a chance to get the File upload to work for this Script? Quote
surefire Posted June 28, 2003 Posted June 28, 2003 Nope. I'll give it a try now. Have an answer by midnight tonight. Quote
surefire Posted June 28, 2003 Posted June 28, 2003 I just gave it a shot, and at first glance, it doesn't appear to work. This is a perfect time to remind folks that I didn't make the script. Looking closer at the script, it appears that if it did work, that it would essentially upload the file to your site, and email you the location of the file one your site. I don't think this would be a very good way to do it... and judging by the error message, I wouldn't be surprised if permissions had to be changed to allow this. Everything I've read on PHP indicates that the regular mail() function is NOT the way to send attachments. The way I would do it would be to use an object oriented script that uses smtp to send email. This allows attachments. I'm considering looking into this. I think the folks at TCH need a super charged php formmail script that can be developed and added to. Quote
TCH-Andy Posted June 28, 2003 Posted June 28, 2003 Good idea Jack, sounds to me like you've just given yourself a co-ordination job Andy Quote
imadsurfer Posted June 28, 2003 Posted June 28, 2003 Man...don't you hate when you self nominate yourself? ImaD Quote
surefire Posted June 28, 2003 Posted June 28, 2003 This will be fun. I love giving back to TCH (and others). Plus, I won't be the only one putting it together. With so many great minds, I think this will be quite an excellent work in progress. I'll start a new discussion in the scripting forum and let others contribute ideas. Quote
surefire Posted June 29, 2003 Posted June 29, 2003 Karmacriminal, your wishes have come true. The script is done. Please see my post "Ultimate Form Mail Script". The code isn't up and online yet... I'm still debugging... but it works awesome! Quote
surefire Posted June 30, 2003 Posted June 30, 2003 Karmacriminal, The script is online. See This Thread Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.