How to Manually adding Attachments using CDO?

Please find this useful article which describes "how to manually adding attachments".

 

This can be possible through Message object either through IMessage.Attachments or IBodyPart.BodyParts collection.Note: This approach is useful if you have content that is not on the file system or URL-addressable.

 

This article has code snippets in Visual Basic, C++, VBScript.