473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Mailto lacks Newline in Message

24
What should I do to get my 3 messages - content1, content2, content3 -
to print on three separate lines in the body of the email?
In other words, what do I use to get a newline between these lines?
Neither <BR> nor %OA nor \n appear to work. Why not?
Any suggestions, or is this simply impossible?

<script language="JavaScript">
var address = new Array()
var name = new Array()
var i=0
var subj
var content
var content2
var content3
var total=3
subj = "This goes into the Subject Line. ";
content1 = "This is the FIRST LINE in the Message Section";
content2 = "This should be the SECOND LINE in Message Section.";
content3 = "This should be the THIRD LINE in Message Section.";
name[0] = "The SENDER";
address[0] = "eee@ffff.com";
name[1] = "RECIPIENT 1";
address[1] = "ggg@dddd.com";
name[2] = "RECIPIENT 2";
address[2] = "www@hhhh.com";
name[3] = "RECIPIENT 3";
address[3] = "kkk@mmmm.com";
for (i=0;i<=total;i++)
{
document.write(i +') <a href=\"mailto:' + address[i] + '?subject=' + subj +'&bcc=' + address[0] +'&body=' + content1 + content2 + content3 +'\">');
document.write(name[i] + " --- " + address[i] + '</a><BR>');
}
</script>
Jun 18 '07 #1
2 2676
improvcornartist
303 Expert 100+
It looks like you use %OA. Try %0A (with a zero). This works for me in mailto links.
Jun 19 '07 #2
jrsjrs
24
It looks like you use %OA. Try %0A (with a zero). This works for me in mailto links.
Thanks Improvcornartist !
You were right. I needed a number zero instead of a letter O.
After working with it for awhile I found that %0D%0A worked best.

Thanks again.
Jun 19 '07 #3

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

Similar topics

15
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...
5
by: Vamsi | last post by:
Hi, I am trying a basic opearation of splitting a multiline value to an array of single lines(Actually making Address into AddressLine1, AddressLine2). I used Environment.NewLine in split, I...
6
by: clintonG | last post by:
Example: <a href="mailto:somebody@somewhere.com>Send Mail</a> I've been trying to find documentation via W3 and the RFCs but I have yet to find documentation that explains how a click event on...
7
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...
1
by: Chad Dittmer | last post by:
I'd appreciate anyone's help with this. I'm trying to open an email window and have it auto fill from vb.net. It works, except I can't get line breaks in the body. I've tried: vbLf vbCrLf...
4
by: Peter Kirk | last post by:
Hi I would like to ask a little bit about the value Environment.Newline: what is it and what is the point of it? Ok, I can see in the docs that it represents "newline" for the current platform -...
5
by: Adam Right | last post by:
Hi, Is there a way to construct the mail body including newline characters by using .net framework mailing functions when sending an email? I cannot insert newline character into the body of the...
11
by: rossum | last post by:
I want to declare a const multi-line string inside a method, and I am having some problems using Environment.NewLine. I started out with: class foo { public void PrintStuff() { const...
2
by: GregBeagle | last post by:
Windows XP I have a simple form from which I want to generate an email with the contents of the form. I use carriage returns to format the content for readability. When I test it on my computer...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.