Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / November 2006

Tip: Looking for answers? Try searching our database.

Inserting text message prior to sending.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert W.Mills - 21 Nov 2006 11:32 GMT
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.

Signature

regards,

Robert W.Mills

Ken Slovak - [MVP - Outlook] - 21 Nov 2006 14:50 GMT
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.

Signature

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

>I have been asked if there is a way to automatically insert a text message
>at
[quoted text clipped - 8 lines]
> I am an experienced programmer (30+ years on mainframe and mini computers)
> but have only used VBScript for a few months.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.