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

Stationery missing when sending email via code



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 20th 07, 11:00 AM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
John
external usenet poster
 
Posts: 135
Default Stationery missing when sending email via code

Hi

In outlook I have set stationery and signatures under 'Mail Format' tab. The
problem is when I send email from another application via code such as

Set OutlookApp = New Outlook.Application
Set EM = OutlookApp.CreateItem(olMailItem)

The email ignores the stationery. What is the problem and how can I make the
stationery work even when mail is sent via code?

Many Thanks

Regards


  #2  
Old November 20th 07, 01:55 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Stationery missing when sending email via code

See Eric's sample at 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


"John" wrote in message ...
Hi

In outlook I have set stationery and signatures under 'Mail Format' tab. The
problem is when I send email from another application via code such as

Set OutlookApp = New Outlook.Application
Set EM = OutlookApp.CreateItem(olMailItem)

The email ignores the stationery. What is the problem and how can I make the
stationery work even when mail is sent via code?

Many Thanks

Regards


  #3  
Old November 20th 07, 11:31 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
John
external usenet poster
 
Posts: 135
Default Stationery missing when sending email via code

Hi Sue

Thanks for that. This one deals with stationery. How can I also add the
default signatures to the reply too?

Many thanks again.

Regards


"Sue Mosher [MVP-Outlook]" wrote in message
...
See Eric's sample at
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


"John" wrote in message
...
Hi

In outlook I have set stationery and signatures under 'Mail Format' tab.
The
problem is when I send email from another application via code such as

Set OutlookApp = New Outlook.Application
Set EM = OutlookApp.CreateItem(olMailItem)

The email ignores the stationery. What is the problem and how can I make
the
stationery work even when mail is sent via code?

Many Thanks

Regards




  #4  
Old November 20th 07, 11:45 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Stationery missing when sending email via code

Accessing the Inspector with MailItem.GetInspector (or displaying the item) should insert the automatic signature, if any, into the MailItem. If you're doing stationery, too, you'd have to parse the signature's HTML and stationery HTML and combine them.

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


"John" wrote in message ...
Hi Sue

Thanks for that. This one deals with stationery. How can I also add the
default signatures to the reply too?

Many thanks again.

Regards


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

"John" wrote in message
...
Hi

In outlook I have set stationery and signatures under 'Mail Format' tab.
The
problem is when I send email from another application via code such as

Set OutlookApp = New Outlook.Application
Set EM = OutlookApp.CreateItem(olMailItem)

The email ignores the stationery. What is the problem and how can I make
the
stationery work even when mail is sent via code?

Many Thanks

Regards




 




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
Stationery missing when sending email via code John Outlook - General Queries 3 November 20th 07 11:45 PM
Form code to create "new message using stationery" Peter J. Veger Outlook - Using Forms 3 October 19th 07 02:53 AM
How do I create personalised email stationery? 740000d Outlook - General Queries 0 July 4th 07 12:48 PM
No email stationery when through code John Outlook - General Queries 2 September 21st 06 12:02 PM
No email stationery when through code John Outlook and VBA 3 September 18th 06 01:11 PM


All times are GMT +1. The time now is 01:11 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.