Forward message to address from subject

Not open for further replies.


New Member
Outlook version
Outlook 2007
Email Account
Exchange Server 2010

I am having trouble with some code and was wondering if you could help out. I am getting emails in which have an email address in the subject line (and no other text in the subject). I want to pass that message straight on to whatever email is in the subject line. Looking at one of your articles, I have changed the code to:

Public Sub HelpdeskRedirect(Item As Outlook.MailItem)

Item.To = Item.Subject
Item.Subject = "Helpdesk Update"
End Sub
Now for the first few tries, this seemed to work but I got the message back:

"You can't send a message on behalf of this user unless you have permission to do so. Please make sure you're sending on behalf of the correct sender, or request the necessary permission. If the problem continues, please contact your helpdesk."

I didn't have permissions to send a message as the address I was receiving the original email from. I have changed that address to something I do have permissions for, and it now doesn't seem to do anything. Previously the attempts to send showed up in the sent folder, but nothing is going in there now. I know the rule runs, because the email moves folder as well. I have removed that step to see if it made a difference but it still does not work.

I have also just changed everything back to how it was when I started and got the undeliverable reply, but still nothing being sent!

Any help or other ideas would be great, I'm stumped!

Not open for further replies.