Can you add a user prompt to save email, Y or N, after sending?

G

GWE

We would like outlook to ask a user after they send an email to be prompted
"do you want to save a copy of this message?" prior to sending. From our
research it looks like you either save every sent message or turn it off
completely.
 
S

Sue Mosher [MVP-Outlook]

See http://www.outlookcode.com/d/code/setsavefolder.htm for a VBA routine that prompts the user where they want to save the item. It could be modified to set Item.DeleteAfterSubmit to True, thus not saving the item at all.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
P

Paul M

Is there any reason that this routine would NOT save to a folder? I added
this to Outlook a while ago. The routine runs every time I send a message,
but it appears that all my saved messages are ONLY in my "Sent Items" folder,
not in the folder I indicated when sending.

If it makes any difference, I generally try to save messages in one of my
many "Saved Items" subfolders.

I am not a programmer, so please answer with that in mind. - Paul M.
 
S

Sue Mosher [MVP-Outlook]

Where are your "many 'saved items' subfolders" located? Under the Sent Items folder?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
P

Paul M

In the leftmost pane of the Mail window are two links, Mailbox and "Saved
Items." I have a series of subfolders under Saved Items. I assumed this was
where I saved things locally vs. on the server. Is that not the case?
Regardless, is there a reason the subroutine wouldn't save things there?
 
S

Sue Mosher [MVP-Outlook]

So Saved Items is a separate .pst file? The technique that you're using to save items to a particular folder works only if the destination folder is in your default store, i.e. the one where your Inbox arrives. It won't work with a non-default store, as noted on the page you cited:

"The folder must be in your default information store -- Exchange mailbox or PST file. The IsInDefaultStore() function tests for this. If you need to move items to a different folder, the solution would be to use the ItemAdd event on the Sent Items folder's Items collection. See To quarantine application file attachments for an example of using ItemAdd. "
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
P

Paul M

Understand that I have no understanding of VB code or the like. I read these
comments, and I am interpreting this as saying that if I create a personal
PST folder for hard disk storage of my files (which is what I have), that the
utility will not save these messages to thate folder or its subfolders. Is
that correct?

If it is correct, and there is a way to modicy the routine to store into the
abovementioned PST, can someone give me SPECIFIC guidance as to how to change
the routine? I do not know what an ItemAdd request is, so if someone can give
me the specific code and tell me where to paste it, that would be
extraordinarily helpful. - Paul M.
 
S

Sue Mosher [MVP-Outlook]

Yes, that's correct. The code sample you cited can only save items to folders in the same hierarchy as your Sent Items folder. There is no way to modify the routine to save to folders in a different .pst file. As the page notes, that would require completely different code approach. I don't know if anyone has posted such a sample anywhere.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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