09-25-2002, 10:28 PM
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@example.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.
09-25-2002, 10:55 PM
What's the rest of the form look like?
09-25-2002, 11:35 PM
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...
09-26-2002, 04:02 AM
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? (http://www.codingforums.com/showthread.php?s=&threadid=6817).
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. :cool:
Dale Mitchell (mailto:firstname.lastname@example.org)
MindCrafter Web Designs (http://members.aol.com/mndcrftr)
09-26-2002, 01:00 PM
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?
09-26-2002, 01:41 PM
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.
09-26-2002, 08:33 PM
Try looking in the DevEdge Forums (http://devedge.netscape.com/) 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.
document.forms.action='mailto:email@example.com?cc='+document.forms.elements.value+'&Subject='+escape('You tellen me me it ain't Workin?!')+'&body='+escape(document.forms.elements.value)
Note: The escape() function will replace special charactors with their hex value i.e. & = %26
Let me know what you find. :cool:
09-26-2002, 09:39 PM
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">
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!