View Full Version : Sending an Email

10-28-2005, 10:17 PM
I doubt it's possible but is there any way to send an email through a website using javascript? I don't want it opening up outlook or anything. Just straight from a form to an email

10-28-2005, 10:29 PM
You can try using a mailto action in a form

<form action="mailto:myemail@myhost.com" method="post">

10-29-2005, 03:36 AM
That could work, but I happened to notice that in Firefox for some reason, it opens Outlook or whatever is my default email program and the code it would normally send in an attached .txt appears in a new composition window. That may just be me though. Markup languages don't like me...

10-29-2005, 09:13 AM
Yes, it's unreliable. It's the only way to do it without going server-side, though. I suggest you try something like Mail Maniac (http://www.mail-maniac.com/).