![]() |
Without ASP or CGI?
Hey, I was wondering if it is possible to use JavaScript to have submitted form contents e-mailed to a specific e-mail without using ASP or CGI.
|
JavaScript cannot email, as far as I know.
|
Quote:
I think the reason you are asking about this is because your web host doesn't allow cgi or other server side services that are capable of mailing. That is too bad. However you can use a free mailer cgi service that is available around various websites. I just did a google search for "free 'mailer cgi'" and found http://www.gwh.com/cgi/formail/page_e.htm which seems to be a free mailer service which you can use. I haven't tested it but the page has the info necessarity to do a quick test run and if it doesnt work or is dont try searching for a different one. As far as javascript goes; you would need to initiate a request for a url with javascript to send the email (unless you wanna go for plain html forms which are fine). I'm not sure the capabillities of javascript nowadays but an easy way to do this would be to hidden frame and make javascript set the location to get a frame from. This location would be the mailerscript with the properly formatted query string. Good luck... |
Thanks guys---this will help alot. You hit the nail on the head with the server not allowing CGI thing---if only i can convince my brother to open up a port on my network so I can host....
|
http://www.bravenet.com also offers a e-mailer script along w/ a slew of others :)
|
Actually jscript has email ability, however VERY. It can open the user's email client with the adress bar filled in. It doesn't sound like this is of much help in your case but i just thought you might want ot know.
As far as free hosts, which allow server side scripting languages, try this site: http://netfirms.com They are free and support CGI. I have had a pretty good experience w/them. |
Quote:
|
You can always just do this (no JavaScript needed):
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
PHP Code:
That seems pretty safe.... |
Because if I did it with JavaScript and a form, they could type their info into the form rather than having to type out the whole e-mail.
|
Another thought --- There are free webhosts that support CGI you could host the form mail script on.
http://www.hypermart.net/ has always been my favorite. |
| All times are GMT -5. The time now is 02:03. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi