Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jan 2005
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pass the subject and contents of text area to outlook express

    I have tried an example and i suppose to do as below:
    When i click a button, the subject and contents that i typed in the text area will pass to the subject and body part of outlook express.

    Currently in my example, it only activate the outlook express.

    Below is my code:
    function sendMail()
    {
    window.location="mailto:"+"?subject=";
    }

    Hope someone could give me some idea and what should i do?

    Thanks.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    <form name="mail" action="mailto:" method="get">
    Subject: <input type="text" name="subject" /><br />
    Message: <textarea name="body"></textarea><br />
    <input type="submit" value="Send" />
    </form>
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New Coder
    Join Date
    Jan 2005
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is it i have to change all the form name of subject and body to "mail" and method change from "post" to "get"?

  • #4
    New Coder
    Join Date
    Jan 2005
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have solved the problem. Thanks.
    Last edited by apple; 02-21-2005 at 02:37 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •