Solved

How to send an email in html format with SendObject?

Posted on 2003-12-09
2
1,685 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
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…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now