A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Inserting text message prior to sending.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 21st 06, 11:32 AM posted to microsoft.public.outlook.program_vba
Robert W.Mills
external usenet poster
 
Posts: 1
Default Inserting text message prior to sending.

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  
Old November 21st 06, 02:50 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Inserting text message prior to sending.

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 05:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.