- Local time
- Today, 14:52
- Joined
- Sep 12, 2006
- Messages
- 15,981
Having spend a while on this, I can create and send an smtp message, and add atttachments.
A2016
For some reason I am unable to declare
set MyMessage as cdo.message
I tried to add cdosys.dll, but it won't add it.
However, I can late bind an object with
set mymessage = createobject("cdo.message")
but now I can't use intellisense with the object.
so I have an email with an attachment(s) added with addattachment …
So, I am trying to iterate the attachments collection and retrieve the attachment details, but I just cant seem to get the right syntax
MsgBox MyMessage.attachments.count & " attachments" returns 1 attachment.
I've tried attachments(1).various properties without success
I've tried assigning an "attachment" record type, but that rejects any of the listed properties.
I've tried assigning to an object, but that won't iterate any properties.
I've tried assigning to a variant.
Everything I've tried just reports "doesn't support that method"
So what's the right syntax to iterate the attachment(s)?
A2016
For some reason I am unable to declare
set MyMessage as cdo.message
I tried to add cdosys.dll, but it won't add it.
However, I can late bind an object with
set mymessage = createobject("cdo.message")
but now I can't use intellisense with the object.
so I have an email with an attachment(s) added with addattachment …
So, I am trying to iterate the attachments collection and retrieve the attachment details, but I just cant seem to get the right syntax
MsgBox MyMessage.attachments.count & " attachments" returns 1 attachment.
I've tried attachments(1).various properties without success
I've tried assigning an "attachment" record type, but that rejects any of the listed properties.
I've tried assigning to an object, but that won't iterate any properties.
I've tried assigning to a variant.
Everything I've tried just reports "doesn't support that method"
So what's the right syntax to iterate the attachment(s)?