473,811 Members | 3,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript mailto - neither subject or body ends in the mail (FF?)

21 New Member
Hi, I tried to do this:

Expand|Select|Wrap|Line Numbers
  1. mailstr = "mailto:recipient@domain.com?subject=subjecextract&body=assg";
  2.  
  3.     mailform = document.getElementById("mailform");
  4.     mailform.setAttribute('action',mailstr);
  5.     mailform.submit();
  6.  
However the mail only shows the recipient and not the rest of the values.
Anybody knows what I do wrong or is it only Firefox?
Mar 22 '07 #1
3 1855
iam_clint
1,208 Recognized Expert Top Contributor
http://www.ianr.unl.edu/internet/mailto.html


check this link please if you have any more problems reply.
Mar 22 '07 #2
moho
21 New Member
thanks for the link, however it didn't really help.

made it work but I'm not really sure why it works now. added onclick on the button, still submit the form. maybe it was because the form was empty that it didn't do anything. added onclick on the button and action, but like I said, I have no clue why.
Mar 23 '07 #3
iam_clint
1,208 Recognized Expert Top Contributor
odd.. well thanks for replying with your resolution
Mar 23 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
36709
by: Obscurr | last post by:
hi I'm would like my app to send a preformatted email(with subject and body) everytime a user pushed a button, like : onclick " mailto:this@that.com" , without the user seeing anything, i.e. not being able to edit the message. Using php, this is very simple; mail("this@example.com", "Subject", "Line 1\nLine 2\nLine 3");
4
37694
by: Krishna A.M | last post by:
Hi, How do i add a hyperlink to a email id having special characters? I tried the same , say mailto: test_&_send@hoohoo.com IN the to box i can see only till test_ and the rest is omitted. Any ideas how the tags could be bypassed? Though i am not a web page designer, I tried & but with no luck. Any help would be highly appreciated.
15
29925
by: Val | last post by:
Any experts on mailto: tags? I want to set a link so that the subject and some of the body of the email is filled in. This is easy for simple text, although you need to use %20 for spaces: <a href="mailto:nobody@nowhere.com ?subject=Your web site &body=This%20is%20the%20%body!"> click here</a>
2
2311
by: Wayne Wengert | last post by:
I am using VB.NET and invoking a function that opens the user's default mail client with a pre-stored list of email addresses and subject. I find that if the string containing the list of email addresses is longer than about 250 chars, I get an error complaining that "Object reference not set to an instance of an object.". If the list of emails is less than about 250 chars, everything works fine. Does anyone have a solution for this or an...
5
4070
by: Olaf | last post by:
I have a ASP page that after saveing data to the database it will write the following script code to the page: <script> document.location='mailto:or@mailadr.se?body=http://myWebserver/page.asp?docID=17&login=HAL&subject=report'; </script> This all looks well but when I se the actual mail the &login=LAS part of the link in the body is not there! The subject is correct! It all looks ok apart from the missing part of the links querystring.
5
18796
by: RobG | last post by:
I am trying to get users to fill in a form on a web page, then click a button to send an e-mail. I am using JavaScript to get the fields from the form, then run a mailto command to put the information into an email. I can create a mailto link in the page using innerHTML, but it seems silly to click a button, a link appears, then click on the link. How do I execute the mailto command using JavaScript?
6
7406
by: 35th Ave Media | last post by:
Hello, I have about 60+ pages that I need to insert a MAILTO: tag so people can email the page using their email client. The body of the message is going to be the URL of that page. Using ASP, how can I insert the page URL in the email body without having to manually enter each URL for each MAILTO: tag? Is there a variable that can be used inside the MAILTO: tag that automatically inserts the current page's URL into the body of the...
7
15882
by: Paul Bromley | last post by:
I am using mailto to open the default e-mail program on the users machine using the following function code snippet that I found on th web.:- Public Function OpenEmail(ByVal EmailAddress As String, _ Optional ByVal Subject As String = "", Optional ByVal Body As String = "") As Boolean Dim bAns As Boolean = True Dim sParams As String sParams = EmailAddress If LCase(Strings.Left(sParams, 7)) <> "mailto:" Then sParams = "mailto:" &
9
77447
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
0
9727
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10398
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10133
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9204
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.