Adding Attachments... 
Author Message
 Adding Attachments...

Hi,

I want to programmatically add attachments to a message. But the attachments
that I want to add belongs to another message. Basically, how to copy
attachments from one message on to another without copying any other
contents. I do not want to maitain any relation with these two messages.

Thanks,
Nikki



Sat, 31 Aug 2002 03:00:00 GMT  
 Adding Attachments...
1] Open message w/ attachments.
2] Save to a file using the WriteToFile method that is part of the
Attachment object.
3] Create your new message and attach items saved from #2 above.

Quote:

> Hi,

> I want to programmatically add attachments to a message. But the
attachments
> that I want to add belongs to another message. Basically, how to copy
> attachments from one message on to another without copying any other
> contents. I do not want to maitain any relation with these two messages.

> Thanks,
> Nikki



Sat, 31 Aug 2002 03:00:00 GMT  
 Adding Attachments...
2) I think that's SaveAsFile.

She might also want to add:

4) Delete the file saved in #2.
--
Sue Mosher
Author of
  "Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours"
  "Microsoft Outlook 2000 E-mail and Fax Guide"

Outlook and Exchange solutions at http://www.slipstick.com


Quote:
> 1] Open message w/ attachments.
> 2] Save to a file using the WriteToFile method that is part of the
> Attachment object.
> 3] Create your new message and attach items saved from #2 above.


> > Hi,

> > I want to programmatically add attachments to a message. But the
> attachments
> > that I want to add belongs to another message. Basically, how to copy
> > attachments from one message on to another without copying any other
> > contents. I do not want to maitain any relation with these two messages.

> > Thanks,
> > Nikki



Sun, 01 Sep 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Add attachment to existing mail (without deleting content)

2. Programmatically Adding Attachment to a new mail message?

3. add attachments to open email

4. Adding Attachments using VBA

5. Add attachment from item in folder to MailItem

6. Add attachments linked to elements of the outlook folder system

7. Adding attachment in Outlook: Can this be done?

8. Adding Attachment to custom form

9. I want to add attachments to emails in outlook

10. Adding Attachments

11. Help - Want to add attachment to mapi email

12. How do I get an added attachment's path?

 

 
Powered by phpBB® Forum Software