Outlook.MailItem - Can i use a html template for body?

E

Eirik

Hello!

I want to use a template file for the body of this code. Is it possible?
I allready have an attachment so that i cant attach it to the mail. I need
to make something like this:


Dim objOutlook As New Outlook.Application
Dim objMail As Outlook.MailItem
Set objMail = objOutlook.CreateItem(olMailItem)
with objmail

..subject = "Something"
..htmlbody = Currentproject.connection & "/template.doc"
..send

end with

Set objMail = Nothing
Set objOutlook = Nothing
 

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

Top