Inserting a hyperlink into the body of an email

G

Gina

Hi.

I am using the following to create an email message


DoCmd.SendObject ObjectType:=acSendReport, _
ObjectName:=strReportName, outputformat:=acFormatSNP, _
To:=strEmail, Subject:=strSubject, MessageText:=strMsg

Is there an easy way to include in the Message Text a Hyperlink? The
Hyperlink will be linked to a website and the link will always be the same.

Please give me your guidance.

Gina
 
C

Cheryl Fischer

Gina,

This works for me ...

strMsg = "This is a hyperlink: http://www.mvps.org "

As you enter your message string in your VBA code, you will not see any
indication that a part of the string is a hyperlink; i.e., change of color,
underlining, etc. In testing this out, however, the sent message will
present a hyperlink.
 
T

Tony Toews

Gina said:
I am using the following to create an email message

As an alternative you can use Stephen Lebans RTF code to create an
HTML email thus embedding the URL "underneath" the human readable
text. And make the email fancier.

However SendObject doesn't support sending in HTML format so you'd
need to choose a different method which increases your work
considerably.

See the Access Email FAQ at my website for more info.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 

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

Similar Threads

email as a pdf 1
email forms and reports 1
Snapshot Viewer 2
Snapshot Viewer / Send Object 1
email in access 2
Choosing Excel version 2
DateDiff Question 3
Mail Message 2

Top