Solved

How to send an email in html format with SendObject?

Posted on 2003-12-09
2
1,702 Views
Last Modified: 2011-04-14
Hi.

I can send mail using the SendObject Method, but I cannot send mail in an html format. Can someone tell me what I'm missing? Thanks. Here is my code.  I want to do this because I want to insert a long hyperlink that gets truncated if I send it in regular text. (unless there is a way to continue a hyperlink.) I'm sending to outlook. Thanks.!

    Dim strToWhom As String
    Dim strMsgBody As String
    Dim strMsgSubject As String
   
    strToWhom = "vern@mydomain.com"
    strMsgSubject = "Confirmation"
    strMsgBody = "<HTML><HEAD><TITLE></TITLE></HEAD><BODY><FONT face=Arial size=2><STRONG>" & vbCrLf
    strMsgBody = strMsgBody & "Thank You for using our service!<BR><BR>" & vbCrLf
    strMsgBody = strMsgBody & "Vern<BR>80 Main St<BR>Somewhere, TXC 11111<BR>V. 111.111.2222<BR>F.333.4444.4444" & vbCrLf
    strMsgBody = strMsgBody & "</STRONG></FONT></BODY></HTML>" & vbCrLf
   
    DoCmd.SendObject , acSendNoObject, acFormatHTML, strToWhom, , , strMsgSubject, strMsgBody, True
 
THANKS.
0
Comment
Question by:dustinjwivell
2 Comments
 
LVL 2

Accepted Solution

by:
dom_cath earned 250 total points
ID: 9908687
What version of Access are you using?  MS Access 2000 does not allow you to send in HTML, only text.  However, 2002 does have the ability to send in HTML format.

Dom
0
 

Author Comment

by:dustinjwivell
ID: 9950791
Hi.

Thanks for the reply. I am using access 2000. Is the alternative (in code) to create a one page report, convert it to html and attach it using sendobject?

Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question