asked on
Public Sub Application_Startup()
' Reference the items in the Inbox. Because myOlItems is declared
' "WithEvents" the ItemAdd event will fire below.
Set myOlItems = Outlook.Session.GetDefaultFolder(olFolderInbox).Items
End Sub
Sub Forward2Ed()
Dim myOlApp As New Outlook.Application
Dim myItem, myForward As Object
Set myItem = myOlApp.ActiveExplorer.Selection.Item(1)
Set myForwarditem = myItem.Forward
myForwarditem.To = "ed@xxxxx.com"
myForwarditem.Save
Set objSafeMail = CreateObject("Redemption.SafeMailItem")
objSafeMail.Item = myForwarditem
objSafeMail.Send
Set myItem = Nothing
Set myForward = Nothing
MsgBox "Message Forwarded" ' I would include this line for testing
End Sub
ASKER
ASKER
Microsoft Outlook is a personal information manager from Microsoft, available as a part of the Microsoft Office suite. Although often used mainly as an email application, it also includes a calendar, task manager, contact manager, note-taker, journal, and web browser.
TRUSTED BY
Open in new window