divan
Member
- Outlook version
- Email Account
- POP3
I have a rule to run a script upon receiving email from a specific account.
The script takes the email body and place it in my subject (placing my subject with body)
Now I want the script to remove or clear the email body before it forwards it to the email recipient, I want it to be black or with custom text.
This is my script:
Sub ChangeSubjectForward(Item As Outlook.MailItem)
Item.Subject = Item.Body
Item.Save
Set myForward = Item.Forward
myForward.Recipients.Add "fake_email@gmail.com"
myForward.Subject = Item.Body
myForward.Body = "XYZ"
myForward.Send
End Sub
___________________________________________________
My script does add the XYZ into the body and appears to send it as a email with body "XYZ" .....but this is what I get on the received email body:
Date: Thu, 15 Jan 2015 20:50:51 +0200
Message-ID: <000001d030f4$30db3450$92919cf0$@co.za>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AdAxWK3sf5r0IidSSTii+P0kIpfaEgAZIF+A
Content-Language: en-za
x-cr-hashedpuzzle: AMFR AjsP BRgi Bbgt B8Kp CGRh DIOr DSp2 DSt4 DbAo Dl8w D9Dg E0H+ E/H4 G7XL Hbpr;1;YwB0AHMAdABvAHIAZQBAAGsAbwB2AGMAbwAuAGMAbwAuAHoAYQA=;Sosha1_v1;7;{B5928C4F-F89F-42CA-A50D-293A9CEE100A};eABvAGwAYQBAAHgAbwBsAGEALgBjAG8ALgB6AGEA;Thu, 15 Jan 2015 18:50:47 GMT;VABlAHMAdABpAG4AZwAgAHQAaABlACAAbQBhAGkAbAA=
x-cr-puzzleid: {B5928C4F-F89F-42CA-A50D-293A9CEE100A}
XYZ
The script takes the email body and place it in my subject (placing my subject with body)
Now I want the script to remove or clear the email body before it forwards it to the email recipient, I want it to be black or with custom text.
This is my script:
Sub ChangeSubjectForward(Item As Outlook.MailItem)
Item.Subject = Item.Body
Item.Save
Set myForward = Item.Forward
myForward.Recipients.Add "fake_email@gmail.com"
myForward.Subject = Item.Body
myForward.Body = "XYZ"
myForward.Send
End Sub
___________________________________________________
My script does add the XYZ into the body and appears to send it as a email with body "XYZ" .....but this is what I get on the received email body:
Date: Thu, 15 Jan 2015 20:50:51 +0200
Message-ID: <000001d030f4$30db3450$92919cf0$@co.za>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AdAxWK3sf5r0IidSSTii+P0kIpfaEgAZIF+A
Content-Language: en-za
x-cr-hashedpuzzle: AMFR AjsP BRgi Bbgt B8Kp CGRh DIOr DSp2 DSt4 DbAo Dl8w D9Dg E0H+ E/H4 G7XL Hbpr;1;YwB0AHMAdABvAHIAZQBAAGsAbwB2AGMAbwAuAGMAbwAuAHoAYQA=;Sosha1_v1;7;{B5928C4F-F89F-42CA-A50D-293A9CEE100A};eABvAGwAYQBAAHgAbwBsAGEALgBjAG8ALgB6AGEA;Thu, 15 Jan 2015 18:50:47 GMT;VABlAHMAdABpAG4AZwAgAHQAaABlACAAbQBhAGkAbAA=
x-cr-puzzleid: {B5928C4F-F89F-42CA-A50D-293A9CEE100A}
XYZ