![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Professional Programmer
|
Send Form through Email
Hello, I'm making somethign and it's like a contact form and when they clikc submit i need it to send the form to specifed email without lanuching outtlook like with mailto:blah@blah.com
Im just wabntign whren they clikc Submit ZAP its in my email.
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
To avoid having the user's mail user agent send the form, you need to have their browser send it via HTTP:
<FORM action="/path/to/cgi/cgiscript.pl"> ... </FORM> Of course, that's the easy part. The more tricky part is that /path/to/cgi/cgiscript.pl is just an example - you need a CGI script or other server-side code to actually send the email. You can send emails from virtually any server-side scripting technology; a popular method is to use the sendmail command at the server side, though beware of security problems with shelling out from a CGI using data you've taken from a user-submitted form. Personally, I write my CGI scripts in Tcl and use the mime and smtp packages to send mail if I have to. There are various form to mail scripts available - see what languages and/or server side technologies your hosting supports and see if one exists - ideally a free one - for your platform. Hope this helps. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Nov 2004
Location: Dilworth, MN
Posts: 15
Rep Power: 0
![]() |
You can look up bignosebird.com. They have a cgi script that will email forms for you as well. Probably easier than building your own.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|