Save mail in a specific folder

  • Thread starter Thread starter thomas
  • Start date Start date
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
 
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.
 
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.
 
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?
 
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?
 
Back
Top