Forward message to address from subject

Status
Not open for further replies.

DuckySpud

New Member
Outlook version
Outlook 2007
Email Account
Exchange Server 2010
Hi,

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:

Code:
Public Sub HelpdeskRedirect(Item As Outlook.MailItem)

Item.To = Item.Subject
Item.Save
Item.Subject = "Helpdesk Update"
Item.Send
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!

Thanks
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M VBA to auto forward message with new subject and body text Outlook VBA and Custom Forms 8
J Forward Message after editing attachments and include edited attachments Using Outlook 5
A Creating an outlook rule to forward an email with a specific message Using Outlook 1
J How to change From then forward message Outlook VBA and Custom Forms 1
S Reply & Forward Date in original message incorrect Using Outlook 2
J How to Reply or Forward a message and Archive it in same step? Using Outlook 0
M How to forward a message and delay sending for up to 30 days Using Outlook 8
K How to auto truncate a message to forward with Outlook Rules Using Outlook 6
C Configuring automatic reply with an approved message attached to original received message that will be forward to a 3rd party Using Outlook 2
D Outlook 2010 Client crashes on new message, reply, forward, send as attachment Using Outlook 3
D Outlook 2010 crashes when I select new message, reply, forward or send as attachment Using Outlook 3
G New Message, reply, or forward window does not open in Outlook for Mac 2011 Using Outlook 1
B Outlook 2010 auto-forward deletes message text from forwarded email Using Outlook 7
C UDFs Reply vs Forward Outlook VBA and Custom Forms 2
M In Outlook Calendar remove the buttons: 'Today' and '<' (Back a day) and '>' (Forward a day) that are below the Ribbon and above the calendar display. Using Outlook 0
J Automatically forward email and apply template Outlook VBA and Custom Forms 0
O Forward a email with modified body Automatically. Outlook VBA and Custom Forms 0
C How to rename subject line and forward the email Outlook VBA and Custom Forms 2
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
M Outlook macro to automate search and forward process Outlook VBA and Custom Forms 6
G Missing forward/replied icons Using Outlook 2
B Automatically Forward Emails and Remove/Replace All or Part of Body Outlook VBA and Custom Forms 8
M Forward Appointment as BCC with VBScript Outlook VBA and Custom Forms 7
B Forward every other email in Outlook 2013 Outlook VBA and Custom Forms 2
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
Sabastian Samuel HOW DO I FORWARD AN EMAIL WITH MACRO using an email that in the body of another email Outlook VBA and Custom Forms 3
C Don't forward duplicate Using Outlook 0
undercover_smother Automatically Forward All Sent Mail and Delete After Send Outlook VBA and Custom Forms 10
A Forward Outlook Email by Filtering using Macro Rule Outlook VBA and Custom Forms 44
I change subject and forward without FW: Outlook VBA and Custom Forms 4
C VBA to Forward e-mails from certain address and between certain times Outlook VBA and Custom Forms 1
J Forward Action in Form Outlook VBA and Custom Forms 1
J Auto Forward - Include Attachment and change Subject depending on original sender Outlook VBA and Custom Forms 3
K add pdf to every reply or forward Outlook VBA and Custom Forms 1
Brostin Forward a mail to the address listed in the email text Outlook VBA and Custom Forms 1
N Going Forward: Using Outlook 2016 for RSS Feeds Using Outlook 2
R changing FW: on forward Outlook VBA and Custom Forms 3
Z Auto Forward Using Outlook 4
N Outlook script to forward emails based on senders' address Outlook VBA and Custom Forms 2
S Merge Emails with attachments with inbox rule to forward Using Outlook 5
B Auto Save of Attachments from Multiple Emails and forward attachments to user group Outlook VBA and Custom Forms 1
D How to forward each email x minutes after it arrives in inbox and hasn't been moved or deleted? Using Outlook 1
W Macro to forward email Outlook VBA and Custom Forms 2
Diane Poremsky Forward Messages that were not Replied To New Slipstick.com Articles 0
mikecox Forward email to another address; not with Rules Using Outlook 3
divan Macro to format email in a certain folder then forward to email address Using Outlook 3
D forward email with attachment using .oft Using Outlook 3
J Outlook 2010: can't forward appointment on custom form Using Outlook 1
J Forward a bounce mail? Using Outlook 1
P How to save sent mail and forward it the next day Exchange Server Administration 3

Similar threads

Top