Hi,
I'm having difficulty getting my head round replacing CDO 1.2.1 with Outlook Object Model.
I normally use the following code to attach inline files to emails
I don't seem to be able to find any examples of code that replaces this method.
Can anyone help?
Thanks,
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts
I'm having difficulty getting my head round replacing CDO 1.2.1 with Outlook Object Model.
I normally use the following code to attach inline files to emails
Code:
' *** POSITION CRITICAL *** you must dereference the
' attachment objects before changing their properties
' via CDO
Set colAttach = Nothing
Set l_Attach = Nothing
' initialize CDO session
Set oSession = CreateObject("MAPI.Session")
oSession.Logon "", "", True, False
' get the message created earlier
Set oMsg = oSession.GetMessage(strEntryID)
' set properties of the attached graphic that make
' it embedded and give it an ID for use in an <IMG> tag
'CSS File
Set oAttachs = oMsg.Attachments
Set oAttach = oAttachs.Item(1)
Set colFields = oAttach.Fields
Set oField = colFields.Add(CdoPR_ATTACH_MIME_TAG, "text/css")
Set oField = colFields.Add(&H3712001E, "IMN")
oMsg.Fields.Add "{0820060000000000C000000000000046}0x8514", 11, True
oMsg.Update
I don't seem to be able to find any examples of code that replaces this method.
Can anyone help?
Thanks,
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts