V
vincent.y.chan
Hi,
I wonder if anyone knows how to copy attachments from one mailitem to
another? I have tried using redemption to do this but I have been
unsuccessfully so far. Here's what my code looks like
If Not attachments Is Nothing Then
For Each attachment As Attachment In
attachments
If attachment.Size <> 0 Then
safeMailItem.Attachments.Add(attachment)
'End If
Next
End If
I don't know why but attachment.size is always 0, even though I know
there is an attachment in Attachments. I wonder does anyone know why
this happens? For some reason, i'm able to retrieve the
attachment.filename value but when I try to read the attachment.size
value, it is always set to zero.
Any help would be much appreciated,
thanks,
Vincent
I wonder if anyone knows how to copy attachments from one mailitem to
another? I have tried using redemption to do this but I have been
unsuccessfully so far. Here's what my code looks like
If Not attachments Is Nothing Then
For Each attachment As Attachment In
attachments
If attachment.Size <> 0 Then
safeMailItem.Attachments.Add(attachment)
'End If
Next
End If
I don't know why but attachment.size is always 0, even though I know
there is an attachment in Attachments. I wonder does anyone know why
this happens? For some reason, i'm able to retrieve the
attachment.filename value but when I try to read the attachment.size
value, it is always set to zero.
Any help would be much appreciated,
thanks,
Vincent