?
Solved

Forward sender specific MS Outlook office emails to personal Email Account

Posted on 2010-01-06
11
Medium Priority
?
778 Views
Last Modified: 2013-11-07
Requirement:
I would like to automatically Forward emails from my MS Outlook client, which I receive from a particular sender, to my personal Email Account.
- This should be done from the MS Outlook client itself or using a separate stand alone program that I can run in the background that continuously monitors my outlook emails and forwards them to my personal email account (gmail, yahoo, hotmail etc).
What will be the best approach to do this - VBA Macros or standalone .NET program ?
What classes / methods are available to do this ?
0
Comment
Question by:Gurunathans
  • 6
  • 5
11 Comments
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 26192117
Hello Gurunathans,

A simple rule based off the sender and forwarding should do the job nicely on the client pc.

Regards,

chris_bottomley
0
 
LVL 1

Author Comment

by:Gurunathans
ID: 26201370
Hi Chris,
Thanks for the reply.
I created a Rule to forward emails from a specific sender to my GMAIL but did not work.
Just so that you know I am using the MS Outlook in my office M/c in the office intranet. The email I am sending it to is my GMAIL account. I am able to send emails directly from my outlook to my GMAIL account.
The reason for my doing this is that I don't have a Blackberry to read some important office emails and appointments. So I want to forward the emails automatically overnight to my GMAIL which I can access on my mobile phone when I am in commuting.
0
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 26201531
One possibility is if you are on an exchange server for mail then the IT may have disabled forward.

We can achieve the same effect through VBA if that is the case.  Let me know.

Chris
0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
LVL 1

Author Comment

by:Gurunathans
ID: 26316906
Chris,
I like the VBA solution better. Do you think if there is a way this function can be built into a C# based .NET process ?

Thanks.
0
 
LVL 1

Author Comment

by:Gurunathans
ID: 26316929
The pst file is residing on my local directory. The MS outlook client periodically downloads mails from the exchange server on to my local pst file. I am not very savy with how MS OUtlook works hence pardon me if I stated any blunders.
0
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 26317488
>>> Do you think if there is a way this function can be built into a C# based .NET process ?

SInce it sounds like hieroglyphics to me I cannot answer, i.e. not familiar with .net generally that's still an aspiration for the future.

IN terms of the outlook client then I am reasonably competent so hopefully can take you through it with any knowledge of the mechanism coming from us ... still up for it?

Chris
0
 
LVL 1

Author Comment

by:Gurunathans
ID: 26317506
Yes totally !
0
 
LVL 59

Accepted Solution

by:
Chris Bottomley earned 2000 total points
ID: 26317726
First off a set of directions in regard to VB code:

To Create a macro:
------------------

Alt + F11 to open the macro editor

     Insert | Module to insert a code module into the project
     In the project tree select the module.
     Insert the required macro, (Q_25024464) into the selected module, ('Module1' or similar)

Check Security as appropriate:
------------------------------

In the application select Tools | Macro | Security
2003 and Earlier : Select Medium
2007 : Warnings for all Macros
Select OK

When that is done create a rule triggered by the sender in question and as the action select run a script and select in teh box Q_25024464.

Obviously any help to proceed then ask but this is hopefully enough to complete depending on your skill set - and needing help is not a bad reflection it's just a need for further help!

Chris
Sub Q_25024464(mai As mailitem)
Dim nuMai As mailitem
Const olkFwd As String = "fred@fred.com"

    Set nuMai = mai.Forward
    nuMai.To = olkFwd
    nuMai.Send

End Sub

Open in new window

0
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 26317738
Meant to say, modify this line to reflect the address where you want the forwarded mail to go:

Const olkFwd As String = "fred@fred.com"

Chris
0
 
LVL 1

Author Closing Comment

by:Gurunathans
ID: 31673582
Followed the steps you listed and the macro worked fine.
-Thanks.
0
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 26362631
glad to help.

Chris
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article lists the top 5 trialware 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 other critical issues with Exchange server or impo…
In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Suggested Courses
Course of the Month16 days, 4 hours left to enroll

850 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