I am trying to create an Outlook email draft with an inline pdf document.
I managed to add inline pictures using html img src tag but this does not work for documents. What should I modify to add pdf instead of images?
I tried using the position but does not add in the correct position instead adds to the end of text.
Set outlook = createObject(“Outlook.Application”)
Set mailItem = outlook.CreateItem(olMailItem)
With mailItem
.BodyFormat = olFormatRichText
.Body = “hello world”
.Attachments.add “file.pdf”, olByValue, 6
End With