Save mail in a specific folder

T

thomas

Hello,

I send mail using outlook 2003 vba through excel 2003

Is is possible that the sent mails be saved in a specific folder instead of
"sent items" folder ? and to create that specific folder if it does not
exist?

Thanks
 
S

Sue Mosher [MVP-Outlook]

Before you send the message, set the value of the SaveSentMessageFolder to
the desired folder (a MAPIFolder object). For a code sample that demonstrates
this (in a different context), see
http://www.outlookcode.com/codedetail.aspx?id=1173.

To create a folder, use the MAPIFolder.Folders.Add method on the desired
parent folder.
 
T

thomas

Thanks but when you write "the value of the SaveSentMessageFolder to the
desired folder" do you mean the default folder is changed?

I want to save the mails sent through VBA to a specific folder but i do not
want to change the default folder

i am new in outlook vba and hardly understand that not documented code


thanks

"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de groupe de discussion :
(e-mail address removed)...
Before you send the message, set the value of the SaveSentMessageFolder to
the desired folder (a MAPIFolder object). For a code sample that
demonstrates
this (in a different context), see
http://www.outlookcode.com/codedetail.aspx?id=1173.

To create a folder, use the MAPIFolder.Folders.Add method on the desired
parent folder.
 
S

Sue Mosher [MVP-Outlook]

Try thinking about it this way: SaveSentMessageFolder is a property of the
MailItem object. That means that it applies only to the particular MailItem
-- that is, a mail message -- for which you set the value of that property.
It has no effect on the default setting.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers




thomas said:
Thanks but when you write "the value of the SaveSentMessageFolder to the
desired folder" do you mean the default folder is changed?

I want to save the mails sent through VBA to a specific folder but i do not
want to change the default folder

i am new in outlook vba and hardly understand that not documented code


thanks

"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de groupe de discussion :
(e-mail address removed)...
Before you send the message, set the value of the SaveSentMessageFolder to
the desired folder (a MAPIFolder object). For a code sample that
demonstrates
this (in a different context), see
http://www.outlookcode.com/codedetail.aspx?id=1173.

To create a folder, use the MAPIFolder.Folders.Add method on the desired
parent folder.

thomas said:
I send mail using outlook 2003 vba through excel 2003

Is is possible that the sent mails be saved in a specific folder instead
of
"sent items" folder ? and to create that specific folder if it does not
exist?
 
T

thomas

ok i understand now

thanks


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de groupe de discussion :
(e-mail address removed)...
Try thinking about it this way: SaveSentMessageFolder is a property of the
MailItem object. That means that it applies only to the particular MailItem
-- that is, a mail message -- for which you set the value of that property.
It has no effect on the default setting.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers




thomas said:
Thanks but when you write "the value of the SaveSentMessageFolder to the
desired folder" do you mean the default folder is changed?

I want to save the mails sent through VBA to a specific folder but i do
not
want to change the default folder

i am new in outlook vba and hardly understand that not documented code


thanks

"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le
message
de groupe de discussion :
(e-mail address removed)...
Before you send the message, set the value of the SaveSentMessageFolder to
the desired folder (a MAPIFolder object). For a code sample that
demonstrates
this (in a different context), see
http://www.outlookcode.com/codedetail.aspx?id=1173.

To create a folder, use the MAPIFolder.Folders.Add method on the desired
parent folder.

thomas said:
I send mail using outlook 2003 vba through excel 2003

Is is possible that the sent mails be saved in a specific folder instead
of
"sent items" folder ? and to create that specific folder if it does not
exist?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top