open a template msg and fill up some fields

Joined
Oct 16, 2005
Messages
1
Reaction score
0
hi,

i want to open a template email messagewith mergefields in it. i want to fill them with the data from my program.

The problem is i can open the template (msg) file but i don't see how i can fill up those mergefields. <<name>>

here is my code :

dim oOutlook As New Outlook.Application
Dim oMailitem As Outlook.MailItem
oMailitem = oOutlook.CreateItemFromTemplate(spath)

(so this here opens my message window)
oMailitem.Display()

but i can't input data. is this possible? i know it can be done in word but i can't mail from there...

any help would be most welcome!

tnx!
 

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