Urgent question (II)
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Urgent question (II)

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Manu
Guest





Posted: Wed Oct 19, 2005 4:58 pm    Post subject: Urgent question (II) Reply with quote

Hello again:

How can I remove the attachments of an email?

Thanks a lot.
Manuel.

Back to top
Glen Scales [MVP]
Guest





Posted: Thu Oct 20, 2005 6:01 am    Post subject: Re: Urgent question (II) Reply with quote

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/default.asp?url=/library/en-us/e2k3/e2k3/_cdo_ibodyparts_delete.asp

Cheers
Glen

"Manu" <Manu@discussions.microsoft.com> wrote in message
news:27B86AD3-39C8-4EFC-B1CE-EF38BCB8B178@microsoft.com...
Quote:
Hello again:

How can I remove the attachments of an email?

Thanks a lot.
Manuel.
Back to top
Manu
Guest





Posted: Thu Oct 20, 2005 2:45 pm    Post subject: Re: Urgent question (II) Reply with quote

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:

Quote:
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/default.asp?url=/library/en-us/e2k3/e2k3/_cdo_ibodyparts_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.




Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB