Inserting text message prior to sending.

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.
 
K

Ken Slovak - [MVP - Outlook]

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.
 

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

Top