Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - General Queries (http://www.outlookbanter.com/outlook-general-queries/)
-   -   Stationery missing when sending email via code (http://www.outlookbanter.com/outlook-general-queries/61543-stationery-missing-when-sending-email.html)

John November 20th 07 10:00 AM

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



Sue Mosher [MVP-Outlook] November 20th 07 12:55 PM

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



John November 20th 07 10:31 PM

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





Sue Mosher [MVP-Outlook] November 20th 07 10:45 PM

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






All times are GMT +1. The time now is 06:28 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-2006 OutlookBanter.com