Solved

Outlook - saving new mail in specific folder

Posted on 2002-06-13
5
221 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now