i am trying send mail in java script

Discussion in 'Javascript' started by panda.lopamudra@gmail.com, Feb 1, 2008.

  1. Guest

    hi to all,

    i am trying this way...any one can help me...
    function initMail(form) {
    text = "Check out this page: " + window.location;
    form.message.value + " (" + form.to.value + "):\n\n" +
    form.sendto.value + " (" + form.to.value + "):\n\n"
    + text + "\n\nYour Friend,\n" + form.sendername.value + "(" +
    form.senderemail.value + ")";
    return (form.to.value != "");


    form name=emailform method=post
    action="mailto:"


    help me in this
     
    , Feb 1, 2008
    #1
    1. Advertising

  2. Erwin Moller Guest

    wrote:
    > hi to all,
    >
    > i am trying this way...any one can help me...
    > function initMail(form) {
    > text = "Check out this page: " + window.location;
    > form.message.value + " (" + form.to.value + "):\n\n" +
    > form.sendto.value + " (" + form.to.value + "):\n\n"
    > + text + "\n\nYour Friend,\n" + form.sendername.value + "(" +
    > form.senderemail.value + ")";
    > return (form.to.value != "");
    >
    >
    > form name=emailform method=post
    > action="mailto:"
    >
    >
    > help me in this


    Don't use a form.
    http://classicasp.aspfaq.com/email/...ion-mailto-to-mail-the-results-of-a-form.html

    If you must, simply use:
    <a href="mailto:?subject=bladiebla">Mail to Bla</a>

    Regards,
    Erwin Moller
     
    Erwin Moller, Feb 1, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nathan Sokalski
    Replies:
    3
    Views:
    1,989
    Larry Lard
    Nov 23, 2005
  2. =?Utf-8?B?Unlhbg==?=
    Replies:
    2
    Views:
    3,962
    Steven Cheng[MSFT]
    Feb 28, 2006
  3. refv8
    Replies:
    2
    Views:
    27,191
    ittower
    Oct 13, 2006
  4. Mike P
    Replies:
    1
    Views:
    588
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Mar 1, 2007
  5. Ramon
    Replies:
    2
    Views:
    1,057
    Ramon
    Oct 25, 2007
Loading...

Share This Page