Encaminhar e-mail chegando no Outlook para o Gmail (Deixando a cópia original no outlook)

0

O exemplo abaixo de Kevin Retting funciona bem, minha única preocupação é que, no Outlook, o eamil original seja encaminhado para a conta do Gmail, mas queremos manter a mensagem no Outlook encaminhando uma cópia para o 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 protected]" 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 protected] 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".'''

    
por Zafeer 22.10.2011 / 14:59

0 respostas