Click to See Complete Forum and Search --> : CDO Objects - How to Use Attachments ?


October 12th, 1999, 12:28 AM
Hi,

Can u tell me how to use Attachments using Collaboration Data Objects 1.21 Library. If u can guide me to any site where I can go through some examples based on CDO it would be fantastic.

Regards

Robert

Lothar Haensler
October 12th, 1999, 02:05 AM
sample code from MSDN#

set objMail = CreateObject("CDONTS.Newmail")
objMail.From = "rob@here.com"
objMail.to = "jdr@there.com"
objMail.Subject = "Bad News"
objMail.Body = "I owe you £50"
objMail.AttachFile("c:\images\logo.bmp", "Our logo")

objMail.Send
set objMail = nothing