But from what I read, the CDO message object should support the .AddAachment
property. I have tried various different filename conventions for the
actual file name attachment, all to no avail.
Thanks
Stacy Whetzell
Private Sub Command1_Click()
Set objemail = CreateObject("CDO.Message")
objemail.From = som...@xyz.com
objemail.To = someo...@xyz.com
objemail.Subject = "test!!!"
'objEmail.AddAttachment = "c:\serid.txt"
objemail.textbody = "Hello World "
objemail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objemail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
"topaz.cha.tva.gov"
objemail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objemail.Configuration.Fields.Update
objemail.Send
end
objEmail.AddAttachment "c:\serid.txt"
I've done this in an Exchange 2000 SMTP transport event sink and it worked for me, I cannot
guarantee it is applicable to your environment but at a glance I see no reason why it wouldn't work.