Solved

Outlook - saving new mail in specific folder

Posted on 2002-06-13
5
223 Views
Last Modified: 2010-05-02
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".
0
Comment
Question by:jgv
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:rpai
ID: 7075708
In the Menu, select Tools --> Rules Wizard and you can specify which message should get saved in what specific folder.
0
 
LVL 12

Author Comment

by:jgv
ID: 7075766
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
 
LVL 12

Author Comment

by:jgv
ID: 7075803
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
 
LVL 5

Expert Comment

by:rpai
ID: 7075826
Thats good news!!

0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 7075897
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

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Updates not working for MS Windows 7 12 164
using Access 8 68
how to know if my Checkbox is True in VB6.0? 9 55
Send outlook email from VBS Script 2 29
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question