Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The below example from Kevin Retting works well, my only concern is that in Outlook the original eamil gets forwarded to the gmail account, but we want to retain the message in Outlook forward a copy to Gmail.

I have written some VBA script to do this *bypass the server's disabling of auto-forward". Am I allowed to post Basically it here given that mimics the user forwarding the email rather than the server doing an auto-forward.

It's pretty simple:

Sub AutoForwardAllSentItems(Item As Outlook.MailItem) Dim strMsg As
 String Dim myFwd As Outlook.MailItem

 Set myFwd = Item.Forward

 myFwd.Recipients.Add "email@email.com" myFwd.Send Set myFwd = Nothing 
End Sub 

It's beyond the scope of this isn't post to give detailed instructions, but here's a programming message board?summary:

Add the above code in the Visual Basic editor of Outlook (Alt-F11 should get your started). Be sure to change email@email.com to the address where you want the mail to go

Tell Outlook to run this code for each inbound message (Tools -> Rules and Alerts -> New Rule -> Check Messages when they arrive -> Next -> YES -> Checkbox "Run a Script" -> Then select the script you just created.

Now Outlook should automatically forward each email you receive, but it won't be blocked by the Admin as an "Auto-forward".```

share|improve this question
    
The script only does one thing: forward an e-mail. It will not delete it or do anything else to it. –  billc.cn Oct 22 '11 at 22:27
    
Bill CN - Any other alternative way i can get copy of the email ? AS this script work well my concern is that original email getting forward im unable to retrive original mail in the inbix. If the forwading of email will be fine provided the original email retain on outlook please advice –  Zafeer Oct 23 '11 at 4:39
    
I think the mail should be left in the inbox, but you should do some experiments to confirm. Note that the VBA code should be typed differently from what you presented here to be valid (it's missing some new lines here). –  billc.cn Oct 23 '11 at 21:39
    
Bill CN - Thanks for the note im not expert in this VBA appreaicet if you could support, the above query was you own query which was written by your self. Please advice –  Zafeer Oct 24 '11 at 11:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.