View Single Post
  #3   Spotlight this post!  
Unread 31-07-2003, 21:00
piotrm's Avatar
piotrm piotrm is offline
Registered User
AKA: Piotr Mardziel
FRC #0190 (Gompei and the HERD)
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2001
Location: Dudley, MA
Posts: 96
piotrm has a spectacular aura aboutpiotrm has a spectacular aura about
Send a message via AIM to piotrm
Quote:
Originally posted by Brandon Martus
JavaScript cannot email, as far as I know.
I believe that is correct as it would be a serious security problem if Javascript could send emails (imagine going to a website which made your computer send a few dozen spam messages to random recepients on your every visit).

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...