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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Form code to create "new message using stationery"



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 18th 07, 08:36 PM posted to microsoft.public.outlook.program_forms
Peter J. Veger
external usenet poster
 
Posts: 2
Default Form code to create "new message using stationery"

I am using Outlook 2003 (but will change to Outlook 2007 within a few
weeks).

It is simple to create a new message, e.g. by
Set myMessage = Application.CreateItem(0)

Is it also possible to create a new message that uses specific stationery
(emulating in VBscript the action "New Mail Message using...")

--
Peter J. Veger, Best Netherlands


  #2  
Old October 18th 07, 10:06 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Form code to create "new message using stationery"

See http://blogs.officezealot.com/legaul...7/21/7581.aspx

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Peter J. Veger" wrote in message ...
I am using Outlook 2003 (but will change to Outlook 2007 within a few
weeks).

It is simple to create a new message, e.g. by
Set myMessage = Application.CreateItem(0)

Is it also possible to create a new message that uses specific stationery
(emulating in VBscript the action "New Mail Message using...")

--
Peter J. Veger, Best Netherlands


  #3  
Old October 18th 07, 11:35 PM posted to microsoft.public.outlook.program_forms
Peter J. Veger
external usenet poster
 
Posts: 2
Default Form code to create "new message using stationery"

Maybe my question was not clear enough, so I will give some context.
I am a member of a sailing club with 300 members.
When a board member wants to send an e-mail to all members, I start a menu
item on the menu Actions with the name 'club distribution'. I then get a
form with a few controls (esp. a body control) and VBscript code. The
information to distribute is put into this body control. After pushing a
button 'send message', the VBscript code creates a mail item with as
BCC-field the list of member e-mail adresses from an Access database, the
body of the mail item is constructed from the submitted info plus a few
texts explaining the way of message sending.
We now want to embellish the message: the generated body of the mail item
should contain a top banner with the club logo and a bottom banner.
So the problem is: is the possible to generate the mail item from stationery
and to put the info the two banners?

--
Peter J. Veger, Best Netherlands


"Sue Mosher [MVP-Outlook]" wrote in message
...
See http://blogs.officezealot.com/legaul...7/21/7581.aspx

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Peter J. Veger" wrote in message
...
I am using Outlook 2003 (but will change to Outlook 2007 within a few
weeks).

It is simple to create a new message, e.g. by
Set myMessage = Application.CreateItem(0)

Is it also possible to create a new message that uses specific stationery
(emulating in VBscript the action "New Mail Message using...")

--
Peter J. Veger, Best Netherlands




  #4  
Old October 19th 07, 02:53 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Form code to create "new message using stationery"

Yes, that's possible, and Eric's sample shows you one method -- by reading the .htm file that holds the stationery. You would then need to insert your content into the HTMLBody of the message that has the stationery content.

Also see http://www.outlookcode.com/d/code/htmlimg.htm if you just want to insert the images directly using the code you already have.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Peter J. Veger" wrote in message ...
Maybe my question was not clear enough, so I will give some context.
I am a member of a sailing club with 300 members.
When a board member wants to send an e-mail to all members, I start a menu
item on the menu Actions with the name 'club distribution'. I then get a
form with a few controls (esp. a body control) and VBscript code. The
information to distribute is put into this body control. After pushing a
button 'send message', the VBscript code creates a mail item with as
BCC-field the list of member e-mail adresses from an Access database, the
body of the mail item is constructed from the submitted info plus a few
texts explaining the way of message sending.
We now want to embellish the message: the generated body of the mail item
should contain a top banner with the club logo and a bottom banner.
So the problem is: is the possible to generate the mail item from stationery
and to put the info the two banners?

--
Peter J. Veger, Best Netherlands


"Sue Mosher [MVP-Outlook]" wrote in message
...
See http://blogs.officezealot.com/legaul...7/21/7581.aspx

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Peter J. Veger" wrote in message
...
I am using Outlook 2003 (but will change to Outlook 2007 within a few
weeks).

It is simple to create a new message, e.g. by
Set myMessage = Application.CreateItem(0)

Is it also possible to create a new message that uses specific stationery
(emulating in VBscript the action "New Mail Message using...")

--
Peter J. Veger, Best Netherlands




 




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 create a "fillable" message form in Outlook? odettebs Outlook - Using Forms 6 September 13th 07 07:59 PM
"The form required to view this message cannot be displayed. Contact your administrator." Austin Powers Outlook - General Queries 2 May 10th 07 05:34 AM
Adding an "All Contact Field" to a Message Form Eric Knopp Outlook - Using Forms 1 March 21st 07 03:44 PM
Outlook 2007: Why get message "custom form cannot be opened"? Nick Piazza Outlook - General Queries 1 February 17th 07 07:16 AM
"The form required to view this message cannot be displayed" vegas4949 Outlook - Calandaring 6 November 14th 06 12:48 AM


All times are GMT +1. The time now is 09:01 PM.


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.