Solved

Outlook - saving new mail in specific folder

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

809 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