Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Anything Goes
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:20

Autogenerated Email Text


Poster: Sandy Rogers
Dated: Wednesday August 13 2003 - 15:45:26 BST

Hi All,

I want to insert text into the body of an email from a link on my menu. I can do this by placing &body in the link with the body text required, however it appears in one continuous sentence/line.

Question Is there a code that I can place within the link text to cause a carriage return and have the autogenerated email body text display as follows :

line 1 aaaaaaaa

line 2 bbbbbbbb

Line 3 ccccccc


as opposed to :

line 1 aaaaaaaa line 2 bbbbbbbb Line 3 ccccccc


Poster: Hergio
Dated: Wednesday August 13 2003 - 15:52:39 BST

Try \n or \\n


Poster: Sandy Rogers
Dated: Wednesday August 13 2003 - 16:11:12 BST

No all it did was print the \n or the \\n

It considered the \\n to be some sort of link

Thanks for trying


Poster: Hergio
Dated: Wednesday August 13 2003 - 17:47:37 BST

I scoured google for a bit and found nothing. As far as I can tell, I dont think its possible. :o If you are using IIS with ASP for your pages, you might want to try getting a server side emailing program. Try aspemail.com or aspsmart.com which can create emails for you, they just need to be installed on your hosts server, so get in touch with your host about getting that. If you are using a linux server, I am sure there are alot of other email programs out there, just google 'em. Good luck in your search!


Poster: Sandy Rogers
Dated: Wednesday August 13 2003 - 18:03:14 BST

Since your first post I have also been scouring Google and have just finished.

I've searched under all sorts of different headings without success.

May be you're right and I won't be able to do this


Poster: Sandy Rogers
Dated: Wednesday August 13 2003 - 18:34:49 BST

I eventually found the code by searching for "html mailto" which has solved a few other queries I had.

The code for a new line is %0A


Poster: Hergio
Dated: Wednesday August 13 2003 - 19:04:27 BST

Geez, gotta love ascii hex characters. I had no idea those would be interpreted by the email client in such a way! Wow, thats a great thing to know for future reference. Also, if you would like any other neat characters to go into the email, check out http://www.asciitable.com and the value in the "Hx" column would be what you would put after the percent symbol in your mailto tag. Very nice detective work! :idea:


Poster: Sandy Rogers
Dated: Wednesday August 13 2003 - 21:22:08 BST

The following link provides a reallyv neat form that converts it all to JavaScript as well for To, From, CC, BCC, Body, Subject and New Lines in teh body text.

http://developer.netscape.com/viewsourc ... ailto.html

I'm well impressed! :D