mailto: hyperlink syntax to embed a subject line?

G

Guest

Is there a mailto: syntax or switch that would let me not only launch a
pre-addressed email, but also specify a desired subject line?

example: click HERE to launch an email to (e-mail address removed) with "Support
Request" as the subject of the email.

Thanks -
 
S

Suzanne S. Barnhill

I don't know whether Word honors the syntax or not, but I have links in
FrontPage such as mailto:[email protected]?subject=Business
Inquiry, so you might try that. In your example, it would be
mailto:[email protected]?subject=Support Request.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
J

Jay Freedman

Rokcet said:
Is there a mailto: syntax or switch that would let me not only launch
a pre-addressed email, but also specify a desired subject line?

example: click HERE to launch an email to (e-mail address removed) with
"Support Request" as the subject of the email.

Thanks -

No, there is no such syntax for a hyperlink. But you can use one of the
macros in http://www.word.mvps.org/FAQs/InterDev/SendMail.htm, and use a
MacroButton field formatted with the Hyperlink style to launch the macro.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
J

Jay Freedman

Jay said:
No, there is no such syntax for a hyperlink. But you can use one of
the macros in http://www.word.mvps.org/FAQs/InterDev/SendMail.htm,
and use a MacroButton field formatted with the Hyperlink style to
launch the macro.

I'll eat my words. Suzanne is exactly right, and it does work in Word. In
the Insert > Hyperlink dialog, use the Address box to type the mailto:
address followed by ?subject= and the subject. As usual, the text displayed
in the document can be different.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
J

Jay Freedman

I'll eat my words. Suzanne is exactly right, and it does work in Word. In
the Insert > Hyperlink dialog, use the Address box to type the mailto:
address followed by ?subject= and the subject. As usual, the text displayed
in the document can be different.

I promise, this is the last time I'll reply to my own post... :)

If you use the Insert > Hyperlink dialog, and click the "E-Mail
Address" button in the lower left corner, it has boxes for you to
enter the address and the subject, and it will automatically construct
the proper mailto: format. This is true at least as far back as Word
2000.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
G

Guest

Thanks for the quick responses! While awaiting them, I found this gem and
answered my own question...but this shows how to do more than just add a
subject line:

MailTo Syntax Summary

Word’s MailTo command can do more than enter a single e-mail address in the
"Send To" field while activating your e-mail program. For example:

Desired MailTo Effect Word Syntax Example
Simple MailTo mailto:[email protected]
MailTo with Multiple Recipients mailto:[email protected],[email protected]
MailTo with Subject mailto:[email protected]?subject=whatever
MailTo with a Copy mailto:[email protected][email protected]
MailTo with a Blind Copy mailto:[email protected][email protected]
MailTo with 1 line in Body mailto:[email protected]?body=Please help!
MailTo with 2+lines in
Body mailto:[email protected]?body=line1%0A%0aline2.%0A%0Aline3

NOTE:
1. Features can be used in combination….i.e.,
MailTo with Subject, a Recipient, a Copy and a Blind Copy:
<a href="mailto:[email protected]?subject=MailTo
Comments&[email protected]&[email protected]">
2. Remember to use only one ? (question mark), when providing multiple
entries beyond e-mail address.
3. The MailTo parameter should be preceded by "?" for the first or only
parameter and "&" for second and subsequent parameter.
 
S

Suzanne S. Barnhill

Indeed, very helpful. Where did you find this?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
S

Suzanne S. Barnhill

See Jay's later retractions and additions.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
B

Bas

is it possible to predefine a line in the message field (in addition
to the line in the subject field?)
 
S

Suzanne S. Barnhill

I think you may well be asking too much with that one.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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