Send EMail using javascript?

User can click following link:
<a href="mailto:person@domain.com&subject=This is only a test">Click here to send email</a>
to send a mail with reciever and subject filled. The user must fills the body.

Is it possible to send mail in a HTML page with reciver, subject and body all filled? Just bringup a window, user can change everything.

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

I've been trying to work around this, but so far I haven't been able to make it work. I'm not saying it isn't possible, but here's the thing. That javascript just provides a way to do the same thing that can be done with a hyperlink. The only thing is, with a hyperlink, your subject and body can't have spaces, it has to be a single string of charictors. That script just provides a way of placing spaces into the strings. No matter what the script tries to do, it's at the mercy of the browser and the email program running it. That's why I don't know if there is a way to place line breaks into it or not. I don't have the points to do it myself, but if it means a lot to you to have this format. I would take the script to the javascript section of Experts-Exchange and offer up a few points to see if someone can modify it for you to suit your needs. Please let me know if someone is able to do this for you.

Gabe
expert@fibdev.com

0

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Introduction
HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many. But the PHP code for processing the checkboxes can be confusing at first. What if a checkbox is…

The viewer will learn the basics of jQuery, including how to invoke it on a web page.
Reference your jQuery libraries: (CODE)
Include your new external js/jQuery file: (CODE)
Write your first lines of code to setup your site for jQuery.: (CODE)

The viewer will learn the basics of jQuery including how to code hide show and toggles.
Reference your jQuery libraries:
(CODE)
Include your new external js/jQuery file:
(CODE)
Write your first lines of code to setup your site for jQuery…