It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming PHP and MySQL Forum Script-archive

Submit form via email.

Share your completed scripts.

Moderator: Malcolm

Submit form via email.

Postby mwa103 on Fri Apr 20, 2007 11:21 pm

I've noticed a lot of people wanting to send form data via email lately, so I put together a php script which will do it. If your server has php support and has smtp(email) settings correctly configured, you should be able to just drop these files on your server and you're good to go. The script is set up to take in form values from either POST or GET so you can use whichever method you want, or do both at the same time if you really want to get fancy(as long as the variable names are different). I've zipped up that file along with an example form and a script to verify email addresses that I found a while back on another site. They are located here on my webserver.

To use the script, just create a form and format it however then point the action at this script. Your form will need 3 values:
1. to = where to send the email
2. from = address you want to show up as the from in the email
3. return = address you want the script to return to after the email is sent.

These values can be stored either in hidden text fields or tacked onto the end of the address in the action section of the form (example: action="sendForm.php?to=me@my.com&from=me@my.com&return=thisPage.html"). If you have any problems or questions about the script let me know and Ill answer you as best I can.

I didn't post the script here because it is kinda bulky, if anyone would like me to post it here anyways let me know.

-Mike

Another link to the zip file.
mwa103
100+ Club
 
Posts: 206
Joined: Mon Mar 07, 2005 10:55 pm

Who is online

Users browsing this forum: No registered users and 0 guests