|
outlook
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Stationery missing when sending email via codeHi
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 See Eric's sample at http://blogs.officezealot.com/legault/archive/2005/07/21/7581.aspx
-- Show quoteSue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "John" <John@nospam.infovis.co.uk> wrote in message news:%23n5kdw1KIHA.3356@TK2MSFTNGP02.phx.gbl... > 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 > > 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]" <sue***@outlookcode.com> wrote in message See Eric's sample at news:eNrwue3KIHA.5116@TK2MSFTNGP03.phx.gbl... http://blogs.officezealot.com/legault/archive/2005/07/21/7581.aspx -- Show quoteSue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "John" <John@nospam.infovis.co.uk> wrote in message news:%23n5kdw1KIHA.3356@TK2MSFTNGP02.phx.gbl... > 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 > > 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.
-- Show quoteSue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "John" <John@nospam.infovis.co.uk> wrote in message news:%23$3rbU8KIHA.2268@TK2MSFTNGP02.phx.gbl... > 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]" <sue***@outlookcode.com> wrote in message > news:eNrwue3KIHA.5116@TK2MSFTNGP03.phx.gbl... > See Eric's sample at > http://blogs.officezealot.com/legault/archive/2005/07/21/7581.aspx > > "John" <John@nospam.infovis.co.uk> wrote in message > news:%23n5kdw1KIHA.3356@TK2MSFTNGP02.phx.gbl... >> 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 >> >> > > |
|||||||||||||||||||||||