Solved

use outlook rules to send message to network location

Posted on 2011-02-15
6
369 Views
Last Modified: 2012-06-21
outlook 2007 or outlook 2010
looking to create a rule which sends a message to a mapped drive OR unc path

in the screenshot below you see what rules i can apply to a message

 screenshot
how can i achieve this?  ...what about using the "run a script" action?
what sort of script is required?  thanks for your help.
0
Comment
Question by:sknoll84
  • 3
  • 3
6 Comments
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 34897994
Run script IS the way and something like:

Chris
Sub saveMailandAttach(mai As MailItem)
Dim dosFolderPath As String
Dim intIncrement As Integer
Dim fn As String
Dim ft As String
Dim FSO As Object
Dim Subject As String
Dim del As Variant

    dosFolderPath = "c:\deleteme\"
    If Right(dosFolderPath, 1) <> "\" Then dosFolderPath = dosFolderPath & "\"
    Set FSO = CreateObject("scripting.filesystemobject")
    Subject = Left(Replace(mai.Subject, """", " "), 20) & " " & mai.ReceivedTime
    For Each del In Array("/", ":", "*", "?", "<", ">", "|")
        Subject = Replace(Subject, del, " ")
    Next
    mai.saveas dosFolderPath & Subject & ".msg", olMsg

Set FSO = Nothing
End Sub

Open in new window

0
 

Author Comment

by:sknoll84
ID: 34898018
is that all it takes?  is it flaky?  reliable?  do you use this....?
0
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 34898120
Is that all it takes, yes
Is it flakey ... might be if you're receiving hundreds of emails at a time
DO I use it ... yup in many permutations deleting attachments, saving attachments as well and the like.

Chris
0
Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

 

Author Comment

by:sknoll84
ID: 34898451
added the developer tab to my outlook 2010

what do i do next?  open visual basic?  then what?

i'm not having much success.

thanks!
0
 
LVL 59

Accepted Solution

by:
Chris Bottomley earned 500 total points
ID: 34898600
Insert a normal code module and paste the code there.

Call it from the rule.

Macro settings - enable macros

Chris
0
 

Author Closing Comment

by:sknoll84
ID: 34898705
pow!  thanks for your help
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
This video discusses moving either the default database or any database to a new volume.

947 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now