Results 1 to 3 of 3

Thread: Urgent question (II)

  1. #1
    Manu Guest

    Urgent question (II)

    Hello again:

    How can I remove the attachments of an email?

    Thanks a lot.
    Manuel.

  2. #2
    Glen Scales [MVP] Guest
    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.

  3. #3
    Manu Guest
    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.


Similar Threads

  1. Urgent Help
    By Medo_in_Egypt in forum Administration
    Replies: 1
    Last Post: 11-22-2005, 09:58 AM
  2. SMTP Question (Urgent)
    By Feddie in forum Administration
    Replies: 1
    Last Post: 08-18-2005, 05:59 PM
  3. Urgent Help
    By Medo_in_Egypt in forum Administration
    Replies: 2
    Last Post: 06-26-2005, 03:11 PM
  4. Managed Sinks - PIA (MSFT) Question - Urgent
    By Shaun Wilson in forum Development
    Replies: 1
    Last Post: 06-18-2005, 05:58 PM
  5. need help URGENT
    By Terra in forum Administration
    Replies: 0
    Last Post: 05-23-2005, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - CAD Forum