insert text into the top (or bottom)

  • Thread starter Thread starter lcy6487
  • Start date Start date
L

lcy6487

How can I insert text into the top (or bottom) of an email when the
user sends it.
How do I access the message body & insert the text? Thanks!
 
If you handle either Item.Send or Application.ItemSend then you get the
Item, read in Item.Body (assuming it's not an HTML email), then to add to
the top:

Item.Body = myText & Item.Body

To append the text:

Item.Body = Item.Body & myText

For HTML you'd have to work with HTMLBody and make sure to add the text to
the correct place in the HTML tags in the content.
 
Back
Top