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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top