Hello,
I use to build outlook Email with OLE components and I want to insert the default digital signature in the htmlbody.
Someone can help me?
I give you part of my code with the variables declarations :
OLEObject viole_application
OLEObject ole_item, ole_attach
string vls_htmlbody
string vls_file
viole_application.ConnectToNewObject("outlook.application")
ole_item = viole_application.CreateItem(0)
ole_attach = ole_item.Attachments
...
vls_htmlbody = ...
vls_file = ...
...
ole_item.htmlBody = vls_htmlbody
//I want to insert here the default outlook digital signature
ole_attach.add(vls_fichier)
...
Thanks
ole_item.Display
ole_item.Body = vls_body + ole_item.Body
It should also work with htmlbody but you have to insert your content into the existing html document.
I just add ole_item.Display and it's work perfectly even with htmlbody
Thanks a lot for your answer