?
Solved

How to send an email in html format with SendObject?

Posted on 2003-12-09
2
Medium Priority
?
1,724 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
dom_cath earned 500 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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

752 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