Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailto: Links (Question / Tip)

Status
Not open for further replies.

cid

Programmer
Jan 4, 2001
18
US
I need to know how to have an email interpret carriage return/linefeed's in the body, that I'm passing it. Here's an example:

mailto:cid@cjd-web.com?subject=This is a test&body=Did you ever know that you're my hero

That should bring up a pre-formatted email with the subject line being, "This is a test" and the body saying, "Did you ever know that you're my hero". All of the QueryString variables that I know of that are valid for mailto links are:

from
cc
bcc
subject
body

I'm pretty sure there is one for attatchments, and I would like to know it. Also, I am wanting to know if there is a way to put in carriage return/linefeed's. I am calling this from VB, so I have tried "vbCrLf" and "\n". Neither worked. I also tried making the BODY string completely HTML, but the email didn't think that's what it was, it thought it was simply text.

Any help is appreciated, plus, I figure this is some information that just about any web developer would like to know. Thanks in advance! ~[ cid ]~

web // email // cid@cjd-web.com
aim // ciddivine
 
Microsoft recommend putting the %25 character before the CR character. Havent tried it myself but you may want to give it a go. Dean Owen
 
My two cents,

Using mail such as aol and such won't recognize these parameters. Great on an intranet but if you are passing hugly important info beware[/red]

Good Luck!
 
QuietDean,
Welp, I didn't get the %25 to work. It might just be because there's no LF. It read in the "%", but the "25" was hidden. Don't understand that, but oh well.

DeZiner,
Thanks for the forewarning! I'll keep that in mind and put that as a note in my program!

Thanks guys! If anyone happens to see anything else, please let me know!!!
~[ cid ]~

web // email // cid@cjd-web.com
aim // ciddivine
 
Hello,
Check
faq215-691
faq215-926
also
thread215-77050
D.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top