Outlook - saving new mail in specific folder

When a new mail item is created in Outlook (through automation), how do you save it to a specific folder? It always saves the email in the Drafts folder which I presume is the "Outlook default folder for the item type".
LVL 12
jgvAsked:
Who is Participating?
 
MoondancerConnect With a Mentor Commented:
Thanks for posting the solution you found.  I have refunded your 50 points to you and moved this to our PAQ at zero points and closed it.  PAQ = Previously Asked Questions database which is  a resource to help others.

Moondancer - EE Moderator
0
 
rpaiCommented:
In the Menu, select Tools --> Rules Wizard and you can specify which message should get saved in what specific folder.
0
 
jgvAuthor Commented:
rpai,

The messages that need to be saved are newly created, unsent email. The rules wizard works with sent and recieved messages only.

If you create a new message in Outlook and then save it, it is saved in the Drafts folder automatically. I realize that the default folder can be changed in Outlook but I do not want to do this. Email created by a user *should* go into the drafts folder but the email that I am generating through code needs to be saved in a specific folder.
0
 
jgvAuthor Commented:
Figured it out.

After creating the email, instead of .Save (which always saves it in the Drafts folder), I am using:

MailItem.Move (myMAPIFolder)

to save it in a specific folder.

0
 
rpaiCommented:
Thats good news!!

0
All Courses

From novice to tech pro — start learning today.