Autogenerated Email Text

A forum for, well, anything really.
Gripes, moans, ideas or just general chit chat. EXCEPT SPAM!!! - Don't just register to post here - IT WILL GET DELETED!!!
Post Reply
User avatar
Sandy Rogers
Advanced
Advanced
Posts: 16
Joined: Tue Mar 04, 2003 10:22 am
Location: Cumbria, UK
Contact:

Autogenerated Email Text

Post by Sandy Rogers »

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
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Try \n or \\n
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Sandy Rogers
Advanced
Advanced
Posts: 16
Joined: Tue Mar 04, 2003 10:22 am
Location: Cumbria, UK
Contact:

Post by Sandy Rogers »

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

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

Thanks for trying
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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!
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Sandy Rogers
Advanced
Advanced
Posts: 16
Joined: Tue Mar 04, 2003 10:22 am
Location: Cumbria, UK
Contact:

Post by Sandy Rogers »

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
User avatar
Sandy Rogers
Advanced
Advanced
Posts: 16
Joined: Tue Mar 04, 2003 10:22 am
Location: Cumbria, UK
Contact:

Post by Sandy Rogers »

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
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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:
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Sandy Rogers
Advanced
Advanced
Posts: 16
Joined: Tue Mar 04, 2003 10:22 am
Location: Cumbria, UK
Contact:

Post by Sandy Rogers »

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
Post Reply