建立规则,
“如何处理邮件”对话框选择
“运用脚本”,
脚本如下(vba):
Sub ForwardWithSendUsingAccount(MyMail As MailItem)
Dim strID As String
Dim strAcct As String
Dim fwdMail As Outlook.MailItem
strID = MyMail.EntryID
Set fwdMail = Application.Session.GetItemFromID(strID).Forward
' 内网发送邮箱:aaa@b.local
strAcct = "aaa@b.local"
fwdMail.SendUsingAccount = Application.Session.Accounts.Item(strAcct)
' 内网接收邮箱:bbb@b.local
fwdMail.Recipients.Add ("bbb@b.local")
fwdMail.Send
Set fwdMail = Nothing
End Sub
就可以用外网邮箱收到外网邮件后,用内网邮箱在内网转发了。
※宏安全性调到低