Hello again:
How can I remove the attachments of an email?
Thanks a lot.
Manuel.
Hello again:
How can I remove the attachments of an email?
Thanks a lot.
Manuel.
Each attachment on message is a bodypart so if your using CDOEX you can use
the Ibodyparts interface to delete the particular attachment see
http://msdn.microsoft.com/library/de...rts_delete.asp
Cheers
Glen
"Manu" <Manu@discussions.microsoft.com> wrote in message
news:27B86AD3-39C8-4EFC-B1CE-EF38BCB8B178@microsoft.com...
Hello again:
How can I remove the attachments of an email?
Thanks a lot.
Manuel.
That's true. I did it as follows:
// IMessage * pMsg is given to me.
IBodyParts * pAtt = NULL;
long nAtt = 0;
pMsg->get_Attachments( &pAtt );
pAtt->get_Count( &nAtt );
if( nAtt > 0 ) pAtt->DeleteAll();
if( pAtt ) {
pAtt->Release();
pAtt = NULL;
}
Thank you very much!!
Manuel.
"Glen Scales [MVP]" wrote:
Each attachment on message is a bodypart so if your using CDOEX you can use
the Ibodyparts interface to delete the particular attachment see
http://msdn.microsoft.com/library/de...rts_delete.asp
Cheers
Glen
"Manu" <Manu@discussions.microsoft.com> wrote in message
news:27B86AD3-39C8-4EFC-B1CE-EF38BCB8B178@microsoft.com...
Hello again:
How can I remove the attachments of an email?
Thanks a lot.
Manuel.