user1926691
user1926691

Reputation: 173

Outlook - mailitem.copy is it possible to save a instance of the mail in the memory

When I use mailItem2=mailItem.copy(); it creates a copy of mailitem in the inbox. I would like to ask if it is possible to create an instance of mailitem in memory without creating a copy in the Inbox.

Upvotes: 0

Views: 984

Answers (2)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66255

A message cannot exist without a parent store or at least an MSG file.

Is saving the message as an MSG file an option? What exactly are you doing and why?

Upvotes: 1

Carlos Landeras
Carlos Landeras

Reputation: 11063

Just declare another MailItem variable and set it:

mailItem2 = mailtem;

Upvotes: 0

Related Questions