![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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. -- regards, Robert W.Mills |
Ads |
#2
|
|||
|
|||
![]()
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.a...essageid=14237 for some useful information. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Robert W.Mills" wrote in message ... 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. -- regards, Robert W.Mills |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I prevent Outlook inserting line breaks in a plain text? | Ernie Gronblom | Outlook - Installation | 1 | October 6th 06 04:30 PM |
Inserting Links into a RTF Message | Rohan Salt | Outlook and VBA | 1 | July 19th 06 06:53 PM |
INSERTING HYPERLINK IN E-MAIL MESSAGE | rapsgumbo | Outlook - General Queries | 1 | June 30th 06 07:04 PM |
Inserting RTF Text in a Message Body | Ridge Kennedy | Outlook and VBA | 4 | April 12th 06 03:29 PM |
sending rtf,doc,text as message body in outllook 2003 in vb.net | Digit Solver | Outlook - Using Forms | 3 | March 31st 06 03:37 PM |