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 8 of 8
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Netscape7 mailto function dysfunctional

    Since upgrading to NS7 V.1 (not beta), I can no longer use the SUBMIT function that calls for sending a form via email.

    Code: <FORM NAME="myform" METHOD="post" ACTION="mailto:email@me.com" ENCTYPE="text/plain">

    Instead, I fill out a form, press SUBMIT and get immediately taken to a blank email "compose" screen with only the addressee filled in, and no information in the Subject line, or text area.

    Is anyone else experiencing this? Is there a work-around, or is this a bug, or is there something about my email preferences that needs changing?

    Your help, as usual, is always appreciated.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    What's the rest of the form look like?

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Could you be more specific? You don't want to see all 358 lines of code, do you?

    The thing is, this isn't just happening on the forms I'm developing, it happens on sites that I used to be able to use "as designed" to send form/email, and now am being taken to the blank compose screen, as mentioned earlier.

    I just spent the last half hour trying to find an example to show you already out there, and of course, can't. So if you need more specifics re: what's in my code, please let me know what area you are thinking about...

    Thanks.

  • #4
    New Coder
    Join Date
    Sep 2002
    Posts
    82
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Netscape

    HopeSprings,

    The trick is to add the "subject" querystring value into the form's action value.

    <form enctype="text/html" name="frmNewMail" method="post" action="mailto:myEmail@test.com?subject='test message'" onSubmit="return errCheckForm();">

    Take a look at the response I posted for thread: How can I CC a user who fills out a form?.

    C/p the code into a new webpage and see if it works. I tested the code in both NS6x and NS7 before posting the response.

    Hope this helps.

    Dale Mitchell
    MindCrafter Web Designs
    Last edited by aCcodeMonkey; 09-26-2002 at 04:11 AM.

  • #5
    New Coder
    Join Date
    Jun 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    Dale,

    Thanks for your response. I did look at the code you wrote for CCing an email and copied it and tested it using: NS4.79, IE5.5, and NS7.

    All of them plunk a subject line where it belongs, and includes the CC line. However, the last two browsers both take me to the msg compose area (IE takes me to Outlook, and NS7 takes me to Messenger) , instead of Alerting me that an Email is being sent and just sending it. Only NS4.79 alerts me and appears to send it, without taking me to the compose screen.

    This is so weird, because everything used to work before NS7 was installed.

    Can you possibly imagine what settings may have been changed that is now preventing this from succeeding?

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi hopesprings,
    I am also having the same problem. I have not found a solution though. If I come up with one I will post it here. Hope you will do the same.

  • #7
    New Coder
    Join Date
    Sep 2002
    Posts
    82
    Thanks
    0
    Thanked 0 Times in 0 Posts
    All,

    Try looking in the DevEdge Forums to find the answer to sending the email without the mail composer opening in NS.
    I tested the code using IE6 (sp1), NS6.2 and NS7.
    IE6 is sending the message without opening Outlook Express 6. I am getting the normal security warning about the CC prior tot he submission.

    You might try adding the "body" query string to the javascript's action string.
    Example:
    document.forms[0].action='mailto:acodemonkey@aol.com?cc='+document.forms[0].elements[0].value+'&Subject='+escape('You tellen me me it ain't Workin?!')+'&body='+escape(document.forms[0].elements[1].value)

    Note: The escape() function will replace special charactors with their hex value i.e. & = %26

    Let me know what you find.
    a credit card for a newbie from Amex: The Amex Blue card would like to start developing a credit history.

  • #8
    New Coder
    Join Date
    Jun 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello, Dale

    Along your line of suggesting to check DevEdge, I have been for the past two days. Most everything I find is "old" and doesn't relate specifically to NS7.

    Meanwhile, what I did find, I tried, but nothing seemed to change results.

    I added: ENCTYPE="application/x-www-form-urlencoded" (which they say is the default), and they say is usually used if the METHOD attribute has the value POST.

    I also added at the top of the HTML:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <META http-equiv="Content-Script-Type" content="text/javascript">
    ....

    to see if that would change anything -- and nadda!

    I'm at a loss for the moment -- will keep checking, and report back if I find anything that does work.

    Thanks to all so far!
    HopeSprings


  •  

    Posting Permissions

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