Yeah I am aware of the copy rule workaround and the change folder for account . But, I want to stay in one PST and move the sent items with no copies.
Am open to using any plugins or code
Main Topics
Browse All TopicsIn Outlook 2007 can I redirect "save sent items" folder by account. So if I am sending an email through POP3 account 'A' the sent message copy is saved to a specific folder vs the default 'Sent' folder
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Found this.....will test to see if it works :D
http://www.sperrysoftwar
fred@fred.com Company (folder under root) > Fred (sub-folder under Company) > Sent (sub-folder under Fred)
preffered would be address w/o prefix just @fred.com
OK, one last question I think in order to proceed ... you haven't identified a specific email or range of emails affected.
You originally said POP account A, I interpret from the last post you want to do it for every email. If it is only for pop accounts a-z then can you identify how I know which pop accounts are to processed in this way?
Chris
range of emails....all sent through a POP Account A
There a currently different email domains (3 for now but more in future) that I send/reply email to strictly through this AccountA...(Outlook 2007 picks it auto for replies/forwards and I pick manually for sends)
So for every email I send/reply through AccountA...
if to @xxx.com then put sent msg in folder Company\xcorp\sent
if to @yyy.com then put sent msg in folder Company\ycorp\sent
if to @zzz.com then put sent msg in folder Company\zcorp\sent
While I think about it. In your outlook insert a new code module and put this line of code in:
Public Const Your_MailAccount_Name = "zzzz@domain4.com"
In this way this sensitive data is aved and if you need to copy the code to me it won't accidently get uploaded ... therefore don't put any code I supply in this same module use a second new code module for that purpose.
Chris
>>> if to @xxx.com then put sent msg in folder Company\xcorp\sent
Presumably I would be correct to say:
if to @xxx.com then put sent msg in folder Company\xxx\sent
But where is the root folder ... i.e. the folderpath.
PLace the cursor on the 'root' for the company folder and press enter on the following in the command line:
?application.ActiveExplore
should be something like:
\\Personal Folders\Inbox\Company
Chris
got it will do - Public Const Your_MailAccount_Name = zzzz@domain4.com
@xxx.com then put sent msg in folder Company\xxx\sent would be fine
Path for sent messg folder for @xxx.com = \\Personal Folders\Company\xxx\sent
APologies I cannot fully test the code now but I tested as far as possible last night so place the following two subs into the new module ... the one without the public constant.
Now we need to execute the code. In 'thisoutlooksession' in teh VBE select application and ItemSend. In this sub add the line:
checkPop Item
Now when you send an email that meets the criteria it should be moved as requested. Let me know how it goes of course.
Chris
Did in thisOutlooksession...
Priva
checkPop Item
End Sub
Module 1...
Public Const Your_MailAccount_Name = "support@abc.com"
Module 2...
In path:
your two subs, changed Company to ABC (folder in outlook is upper case so matched it)
changed 'sent' to 'Sent' (folder in outlook 'S' upper case so matched it)
saveFolder = "\Personal Folders\ABC\" & cpy & "\Sent"
In Outlook...
Made sure if recepients email is zzz@mydomain.com
then set sub-company folder name to mydomain (lowercase)
Sent email to zzz@mydomain.com from account support@abc.com
did above for another recipient with different domain
Did not work....message went to default Outlook Sent Items folder
--------------------
Just to test I tried using the pop account name as it appears in Outlook ...account properties....more settings....account name.
i.e. ABCcorp
got results below...
Error...
Run-time error '13':
Type mismatch
On Debug...
mai.SaveSentMessag
---------------------
Hope this helps, and thank you very much for staying with this.
Using outlook as a client no exchange involved.....when I send a message via AccountA the message ends up in the default 'Sent Items' folder no errors popup.
folder names have no invalid characters...they follow the email domain so there are no spaces...however one does have a - i.e. xyz-asdf ....but its does not work for any of the others either.
is there a way to log the actions of the macro to see whats happening???
Deleted the sub folder under company....no effect....script did not create sub folder and sent item remains in Sent Items folder.
Does your script wait for the message to go to Sent Items folder and then move it to the desired folder? if not ...maybe thats a direction that may work.
The reason I say that is cause I downloaded a trial version of the commercial sw I mentioned in the above posts. Its a plugin not a vb module.I notice the sent message first goes to the Sent Items folder and a second later it is moved to the desired folder.
'my' solution actually changes the email as part of the send action so that it is saved straight away to the required folder. I will repost the code now to 'stop as soon as it's triggered so let's see if it runsd at all!
If it stops then press F8 time and again and see which lines of code are executed.
Chris
So the mail account name isn't being detected ... it's nnot ther case as that is forced to low.
SInce you cannot advise the mail account you need to double check the definition of your_mailaccount_name in teh public file.
When the code stops on that line type in the immediate window:
?mai.SendUsingAccount
then
?Your_MailAccount_Name
And line the two outpus up and see where they are different.
Chris
IT WORKS!!! it was the 'Your_MailAccount_Name' constant....
A summary of why...for reference...
"To identify the correct definition can you run this macro..."
This script provided the email address of AccountA (aaa@mydomain.com)
So we used...
Public Const Your_MailAccount_Name = "aaa@mydomain.com"
In my message "04/17/09 09:18 AM, ID: 24169361" I mentioned...
"Just to test I tried using the pop account name as it appears in Outlook ...account properties....more settings....account name."
But this caused an error cause the script had a few ooops' at the time
I never tried that again...till I saw your latest post and changed the public constant to....
Public Const Your_MailAccount_Name = "AccountA"
AccountA is the name given to the account in "more Settings" in account properties..see image below.
It works great......THANK YOU,THANK YOU,THANK YOU,THANK YOU,THANK YOU,THANK YOU, VERY MUCH...You are AWESOME...and thanks for being patient and staying with me on it. I am estatic.
Business Accounts
Answer for Membership
by: DiagnosticsPosted on 2009-04-14 at 12:07:09ID: 24141409
Do you not want it to go to your Sent message at all or is it okay if a copy also goes there? Under Tools there is a Rules and Alerts option which can create a rule that can send a copy of your sent item to a folder you specify.