Another "mailto" question -- mailto link that puts body of emails like "reply" does?

S

StargateFan

This has come up again so thought I'd ask if there was code one could
add to the "mailto" link to start new message that would add the email
bodies in? I know this one is a long-shot, but since it's a 50/50
type of deal, thought I'd ask anyway.

I need to do this when I send an email from home but that the
recipient might like to respond to to my work email address. Up till
now, I've just put a blurb with a "mailto" with my office email
address and left it at that. I'm hoping to get a little more
sophisticated, if that is indeed possible. Hopefully such a link, or
other process that might do the same thing, allows user to send
response to another location without having to do FW and then type or
copy/paste the correct email address.

Thanks in advance. :blush:D
 
S

Sue Mosher [MVP-Outlook]

mailto:[email protected]&subject=test%20mail&body=the%20quick%20fox

But why not use the message Options dialog to set the Reply-to address instead?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

StargateFan

This has come up again so thought I'd ask if there was code one could
add to the "mailto" link to start new message that would add the email
bodies in? I know this one is a long-shot, but since it's a 50/50
type of deal, thought I'd ask anyway.

I need to do this when I send an email from home but that the
recipient might like to respond to to my work email address. Up till
now, I've just put a blurb with a "mailto" with my office email
address and left it at that. I'm hoping to get a little more
sophisticated, if that is indeed possible. Hopefully such a link, or
other process that might do the same thing, allows user to send
response to another location without having to do FW and then type or
copy/paste the correct email address.

Thanks in advance. :blush:D

Hey, I kept searching as I often do, but this time found something.
Here's a partial fix to my problem above:
<mailto:[email protected]&subject=Subject goes here&body=Today is
July 3rd, 2006.>

I found that the syntax for the body of the email is a pain. It would
mean putting a limited number of characters right into the mailto
syntax where I was hoping just to have something as easy as "body".
If there isn't an easier way other than the above, I will just have to
be happy with getting a reply email to the correct address with just
the subject line being replicated. But thought I'd ask first if that
is the only way to get the body, by typing in everything that must go
in there.

Thanks.
 
S

StargateFan

mailto:[email protected]&subject=test%20mail&body=the%20quick%20fox

But why not use the message Options dialog to set the Reply-to address instead?

<rofl> Because I didn't know about this option! This is great;
thanks so much. I never knew this trick and it's definitely one that
is perfect! I just recalled the message I just emailed and re-sent
with the reply in options set to my work address. Most wickedly kewl!

Thanks! :blush:D
 
S

StargateFan

Hey, I kept searching as I often do, but this time found something.
Here's a partial fix to my problem above:
<mailto:[email protected]&subject=Subject goes here&body=Today is
July 3rd, 2006.>

I found that the syntax for the body of the email is a pain. It would
mean putting a limited number of characters right into the mailto
syntax where I was hoping just to have something as easy as "body".
If there isn't an easier way other than the above, I will just have to
be happy with getting a reply email to the correct address with just
the subject line being replicated. But thought I'd ask first if that
is the only way to get the body, by typing in everything that must go
in there.

Thanks.

Oops, reminds me of a Gilda Radner's "never mind" <g> ... just
learned from Sue about changing the reply address in the Options box,
so this whole thing whole problem has now disappeared. Very neat!
:blush:D
 
S

StargateFan

mailto:[email protected]&subject=test%20mail&body=the%20quick%20fox

I have a question as I'm back with this issue and just ran into
something.

Here's what I have now:
mailto:[email protected]&subject=Subject%20Line&body=Text%20body.

How can I get that period (.) at the end of the sentence to appear
properly in the body? I've googled and searched the help but no go.

Thanks! :blush:D
 
S

Sue Mosher [MVP-Outlook]

Just as you replaced the space with its hex representation -- %20 -- you'd need to replace the period with %2E.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

StargateFanFromWork

Excellent, so that's what that is ... Super. I'm sure there's a list
somewhere for all sorts of other items we might need (parentheses, etc.) so
thanks for letting me know what to look for now. I searched various Outlook
groups and the archives and this didn't come up yesterday. I bet you know
that I know the term, I'd find tons of information now! <g>

Thanks. :blush:D

Just as you replaced the space with its hex representation -- %20 -- you'd
need to replace the period with %2E.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
B

Brian Tillman

StargateFanFromWork said:
Excellent, so that's what that is ... Super. I'm sure there's a list
somewhere for all sorts of other items we might need (parentheses,
etc.) so thanks for letting me know what to look for now. I searched
various Outlook groups and the archives and this didn't come up
yesterday. I bet you know that I know the term, I'd find tons of
information now! <g>

http://www.permadi.com/tutorial/urlEncoding/
 
S

StargateFanFromWork

StargateFanFromWork said:
Awesome, thanks for the great link! :blush:D



I hunted and found a few places that gave me the hex coding that we can use
for "mailto" syntax and I made up the list below for future reference that I
thought I'd share. I hope it can help others.

I have one last question, though: is there a hex code for carriage returns
or enters? That's the only thing I'm missing.

Thanks!






****************************************************************************
**************
Format, place a "%" in front of the hex number below to get the character on
the right side generated.
i.e., "%28" will result in "(".
space = 20
! = 21
# = 23
$ = 24
% = 25
& = 26
' = 27
( = 28
) = 29
@ = 40
* = 2A
+ = 2B
, = 2C
- = 2D
.. = 2E
/ = 2F
: = 3A
; = 3B
< = 3C
? = 3F
[ = 5B
\ = 5C
] = 5D
^ = 5E
_ = 5F
{ = 7B
| = 7C
} = 7D
~ = 7E
****************************************************************************
**************
 
S

StargateFanFromWork

Brian Tillman said:
Why not use the ones that already exist?
http://www.ianr.unl.edu/internet/mailto.html

That page had the code so I could modify my list to include it. Thanks.
Much appreciated. I think my list now has most of the common punctuation
codes needed when setting up mailto syntax.



****************************************************************************
*********************
Left-hand means character, right-hand side means hex code:
------------------------------------------------------------

Format: place a "%" in front of the hex number below to get the character
on the right side generated.
i.e., "%28" will result in "(".

space = 20
enter = 0A (carriage return; new paragraph)
! = 21
# = 23
$ = 24
% = 25
& = 26
' = 27
( = 28
) = 29
@ = 40
* = 2A
+ = 2B
, = 2C
- = 2D
.. = 2E
/ = 2F
: = 3A
; = 3B
< = 3C
? = 3F
[ = 5B
\ = 5C
] = 5D
^ = 5E
_ = 5F
{ = 7B
| = 7C
} = 7D
~ = 7E

-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-

c.c. code: &CC=
b.c.c code: &BCC=
subject line: &Subject=
body text: &Body=

Example with a c.c., b.c.c., subject line and body text populated:
mailto:[email protected]&[email protected]&[email protected]&Subject=Type%20subject%20here%2E&Body=Body%20here%2E%0A%0APlus%20a%20new%20paragraph%2E%0A%0A
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top