Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to sendobject string email body in html format?

Status
Not open for further replies.

jetspin

Programmer
Mar 5, 2002
76
Hi.

Is it possible to sendobject a string for an email body in html format for OutLook?

I can send email very easily to Outlook in plaintext but my DHL and FedEx tracking links get truncated.

If the only solution is to write an html report and send that as an attachment, how do you do that to get me started. Thanks.
 
try using the "SendObject" command. (DoCmd.SendObject).

or

Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
Dim i As Integer


Call SaveReportAsPDF("your reportname", "C:\pdfname.pdf")

With MailOutLook
.To = emailadresses
.CC = more emailadresses
.Subject = "subject"
.HTMLBody = ""
.Attachments.Add "C:\pdfname.pdf", olByValue, 1, "\pdfname.pdf"
.Display
End With
 
Hi.

I simply want to send a very brief email to a customer with a link for a shipping tracking number. Is this not possible?

The link gets trunctaed in plain ascii text format.

Can I save a file as html format and attach that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top