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.

HI all,

autoforwarding at exchange level is disabled by the server admin, so i have got some VBA code that forwards emails to an external email(my blackberry email). I have it working fine, but was wondering is there any way when recieving the email on my other account that instead of seeing all the emails from me, you can see the original sender in the from part?

here is my code

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

Set myFwd = Item.Forward

myFwd.Recipients.Add "asb@x.net"
myFwd.Subject = Mid(myFwd.Subject, 4)
myFwd.Save


myFwd.Send
Set myFwd = Nothing
End Sub
share|improve this question

1 Answer 1

Although I am not a user of Outlook, this old article suggests a way:
OL2000: How to Programmatically Set a Form's From Field.

Perhaps this could work :

myFwd.SentOnBehalfOfName = Item.SentOnBehalfOfName 

I also noticed in the article MailItem Object the property of SenderName, which may also be useful.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.