Inserting text message prior to sending.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been asked if there is a way to automatically insert a text message at
the start and/or end (after the users signature) of an email when the user
elects to send the email.

I think that I need to do a 'Item.Body = MyStartText & Item.Body &
MyEndText' within 'ThisOutlookSession.Application_ItemSend'. Is this correct
and/or the best way?

I am an experienced programmer (30+ years on mainframe and mini computers)
but have only used VBScript for a few months.
 
Code in ThisOutlookSession is VBA, not VBScript.

You can do what you want but using Body won't address HTML or Rich Text
messages. For HTML you should use HTMLBody and the text would need to be
inserted within the <BODY> </BODY> tags using HTML formatting such as <br>
instead of using vbCRLF for a newline.

See http://www.outlookcode.com/threads.aspx?forumid=2&messageid=14237 for
some useful information.
 
Back
Top