How can I make a web form that the results can be sent directly to my e-mail without having to go through another server?
How can I make a web form that the results can be sent directly to my e-mail without having to go through another server?
Do I need to explain better?
Assuming you don't have a server-side methods like PHP, ASP, Perl, etc. the only thing I think you can do is something like this:
But that will just open the user's e-mail client.Code:<form action="mailto:[email protected]" enctype="text/plain"><div>
Name: <input type="text" name="Name"><br>
Subject: <input type="text" name="subject"><br>
Comments: <textarea name="comments" cols="20" rows="10"><textarea><br>
<input type="submit" value="Send Comments"><input type="reset" value="Clear Form">
</div></form>
That code doesn't work in Netscape. It just opens a blank email.
I think that's 'cause I gave incorrect code ;) This:
Should have been this:Code:Comments: <textarea name="comments" cols="20" rows="10"><textarea><br>
Or you could add method="post" to have all the form elements added to the body along with their name. But I think if you use AOL none of the above will work.Code:Comments: <textarea name="body" cols="20" rows="10"></textarea><br>
When I started off doing websites I used a similar form for my sites, but then I realised that netscape users couldn't use the form. I use cgi or php now. I also noticed that Explorer 6 does the same thing, just opening the email.