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


0
john6244 (170)
11/20/2007 10:00:03 AM
outlook 87535 articles. 10 followers. Follow

3 Replies
537 Views

Similar Articles

[PageSpeed] 6

See Eric's sample at =
http://blogs.officezealot.com/legault/archive/2005/07/21/7581.aspx

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


"John" <John@nospam.infovis.co.uk> wrote in message =
news:%23n5kdw1KIHA.3356@TK2MSFTNGP02.phx.gbl...
> Hi
>=20
> In outlook I have set stationery and signatures under 'Mail Format' =
tab. The=20
> problem is when I send email from another application via code such as
>=20
> Set OutlookApp =3D New Outlook.Application
> Set EM =3D OutlookApp.CreateItem(olMailItem)
>=20
> The email ignores the stationery. What is the problem and how can I =
make the=20
> stationery work even when mail is sent via code?
>=20
> Many Thanks
>=20
> Regards
>=20
>
0
suemvp (4038)
11/20/2007 12:55:02 PM
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]" <suemvp@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

-- 
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" <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
>
> 


0
john6244 (170)
11/20/2007 10:31:40 PM
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.=20

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


"John" <John@nospam.infovis.co.uk> wrote in message =
news:%23$3rbU8KIHA.2268@TK2MSFTNGP02.phx.gbl...
> Hi Sue
>=20
> Thanks for that. This one deals with stationery. How can I also add =
the=20
> default signatures to the reply too?
>=20
> Many thanks again.
>=20
> Regards
>=20
>=20
> "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message=20
> news:eNrwue3KIHA.5116@TK2MSFTNGP03.phx.gbl...
> See Eric's sample at=20
> http://blogs.officezealot.com/legault/archive/2005/07/21/7581.aspx
>=20
> "John" <John@nospam.infovis.co.uk> wrote in message=20
> news:%23n5kdw1KIHA.3356@TK2MSFTNGP02.phx.gbl...
>> Hi
>>
>> In outlook I have set stationery and signatures under 'Mail Format' =
tab.=20
>> The
>> problem is when I send email from another application via code such =
as
>>
>> Set OutlookApp =3D New Outlook.Application
>> Set EM =3D OutlookApp.CreateItem(olMailItem)
>>
>> The email ignores the stationery. What is the problem and how can I =
make=20
>> the
>> stationery work even when mail is sent via code?
>>
>> Many Thanks
>>
>> Regards
>>
>>=20
>=20
>
0
suemvp (4038)
11/20/2007 10:45:38 PM
Reply:

Similar Artilces:

Payment Terms missing on Credit Memo
When we print our credit memos (returns) the payment terms are not pulling from the customer card. Wejust upgraded from 6.0 to 7.5 (SQL2000). Any ideas ? Using Report Writer, add the payment terms field from the Customer Master. ...

Email account statistics
Hey, I am looking for a way in exchange 5.5 to pull reports for individual users accounts that will show their stats for emails usage (sent\received, etc) but cannot find a way without using a 3rd party product. If anyone knows of a way within exchange 5.5 that i can do this please let me know. Thanks ...

Run code then repeat every 15 minutes
Hello I am sorry to re-post this question but I can't get it to work after many hours of trying and searching various websites for assistance. I am trying to look to see if a text box on my form contains the string "Found". If it does it will send an e mail (this section works fine). If it does not then wait for 15 minutes and repeat the check to look for the string. I can not get the code to wait and repeat. I tried John Vinson's code Me.Timer = 1000*60*15 Call Timer ' to have it "do something" the first time but in this case I get the...

Missing Maps
How can I include maps for US Virgin Islands and Guam with the US map when I chart data from Excel? I am using Excel 2000. I understand that MS Map is not supported in later versions; too bad. Is there a recommended replacement for charting geographical data visually? The replacement is a priced product named MapPoint (http://www.microsoft.com/mappoint/default.mspx) I haven't used it enough to reach a conclusion on whether or not I'd recommend it. Also, consider searching google for keywords like 'map addin excel' (w/o the quotes). With those three, I got qu...

outlook always uses same account to send emails
Hey, I'm using office 2003 SP1. In outlook I have correctly configured 6 email accounts. Since about a month of 5 almost every mail I send is send with the same account even if I change the account in the new message window or when I reply on a mail from a different account. So now it is not possible to send an email from one of the other 5 accounts. Does anybody know the cause of this problem? grt, Lieven Hi Lieven, Outlook 2003 allows you to choose which account you wish to reply from when you reply or create a new message. It displays an accounts menu option (next to send) ...

Missing unread folder in Outlook 2003
I know this is an old post but I just ran into the same problem. I fixed it by adding a new search folder. click on New at top left click search folder choose unread mail By default its already selected, click ok and you're done You can drag the folder into what ever postilion you want it in the folders list big help, fixed my problem. thanks. ...

Synch Issues email during defrag
I ran a mailbox store defrag, overnight during the New Year's weekend. While the store was offline, users got Sync Issues email. Is there a nifty trick to prevent those while the store is offline? 5:49:05 Synchronizer Version 11.0.8000 5:49:05 Synchronizing Mailbox 'Greg Stigers' 5:49:05 Synchronizing Hierarchy 5:49:05 Terminated in error 5:49:05 [80040111-520-80040111-921] 5:49:05 The Microsoft Exchange server is currently busy. If this message is still displayed in 30 minutes, contact your Exchange server administrator. 5:49:05 Microsoft Exchange Server Information...

xmas stationery
Hi Could someone please tell me where I can get some xmas stationery for use during the xmas period? Many Thanks Regards Office Max, Office Depot, etc. Probably any office supply store. "John" <John@nospam.infovis.co.uk> wrote in message news:uvsKK8LQIHA.5264@TK2MSFTNGP02.phx.gbl... > Hi > > Could someone please tell me where I can get some xmas stationery for use > during the xmas period? > > Many Thanks > > Regards > Try poking around at the following link. You should be able to find something there. Ignore the other response from ...

ID number for all emails
We have a need to have all emails have a unique id number so they can be tracked - does anyone know if this is possible? All items in Outlook are uniquely identified by a combination of the EntryID of the item. This is a constant unless the item has been moved (it remains the same if moved in a PST file) in an Exchange mailbox or public folders store. In addition, each item has a ConversationIndex property that in combination with the ConversationTopic property. Those could be used. Other than that you could generate your own unique series of tags for items by using a database table's ...

Email tracking
I have turned off from my client, outlook and exchange server 2k email tracking options. But still, sometimes I get spam from mail-address which does not excists anymore, I get "mail was unable to blaa blaa" I'm sorry for the bad description, please ask if I forgot to mention something usefull. If I understand correctly...you receive mail stating "mail was unable to be delivered to xxx@xxx.com" AND you really did not send this msg? We see this often in our Org, it's due to someone externally sending the email/SPAM as your address (spoofing), and when the ...

PM Payment Missing?
We have the situation where a payment appears in the trial balance report and a trx history report for a creditor, but NOT under the enquiry menu for the creditor even with incl historical trx what are the steps to try and rectify this? a check links on the purchasing module to see if any errors or abnormal items appear? anything else? thanks Theo This is a multi-part message in MIME format. ------=_NextPart_000_0037_01C5BFF9.57E737E0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit Check links and reconcile are the first things I would try. If tha...

Public folder send as permissions problem
Exchange 2000, outlook 2000. I have given myself send as permissions for a public folder from the Exchange System Manager so that I can setup an automatic reply from a public folder back to people who send emails to folder. This does not send the auto reply back to external addresses only internal email addresses. To test why this failed I tried sending email as folder from my mailbox and it says I do not have permissions. What am I doing wrong please. -- Kath ...

Legend Missing Info
I have a chart where the source data was looking at three rows of information. I added a row before the third row to make four rows of data. After I added the information. I went back to source data and reselected all four rows (including the header row and column row title information). It took the information for all four rows in the chart but in the legend it only shows the first three rows. I have expanded the legend to make sure it was not hiding. Any suggestions? -- Debra Ann ...

Archieved email
How do you access archieved email? You can open the PST file to which you archived in Outlook - file | open ..... Pattie wrote: > How do you access archieved email? ...

missing background
i'm trying to print a banner spread over 3 sheets of a4 paper with text and a colour background.The text is printing fine but the background colour is only printing on the second sheet.Any suggestions would be appreciated.Thankyou What version Publisher? This article addresses the same type issue, might work for you. PUB2000: Background Does Not Print on All Pages of Greeting Card http://support.microsoft.com/default.aspx?scid=kb;en-us;198491 Is your printer driver current? -- Mary Sauer MS MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com "st...

Email Customer from Dynamics GP
Here's a link to a simple VBA customization that will make the Email link "work" on the Internet Info window. You can get to this window by clicking on the "I" beside the Address ID field. http://dynamicssmallbusiness.blogspot.com/2009/04/dynamics-gp-free-customization-click-on.html -- Japheth Nolt MCP Microsoft GP/SBF Specialist Landis Computer http://landiscomputer.com The email link works as is. Simply add email addresses as Mailto:rwhaley@accoladepublications.com and the user can then just click on the link and their default email client will open with...

where is my stationery
I developed several different stationery for various uses in 2003 and knew how to access them through TOOLS>OPTIONS>MAIL FORMAT, but the new 2007 does not sem to grant me that option. Yet I have access to the one stationery that I was using before upgrading to 2007. Can someone tell me how to access and use the various stationery templates saved in my profile? Tools | Options | Mail Format | Stationery and Fonts is still the right = command. Maybe you could explain what you're seeing and what the problem = is. --=20 Sue Mosher, Outlook MVP Author of Configuring Microsoft O...

Writing values to a table via VB
I want to create an audit log for a process database at my office. Basically, everytime a change is made to certain parts of the form I want to log the change and who did it. For example, when someone checks a box that indicates an issue as been resolved, the persons network ID, the change made and date and time the change was made will be recorded. Here is what I have so far: *********************************************************** Private Sub Resolution_Click() Me.dtmDateResolved = Date Me.dtmTimeResolved = Time Dim strSQL As String Dim UserID As String UserID = fOSUserName() ...

attaching emails from various folders to a new email
Is there a way to create an email and attach various emails that are filed in different folders? Thanks Yes, drag and drop those mail items in the message you are composing -- Robert Sparnaaij [MVP-Outlook] www.howto-outlook.com Tips of the month: -Backup and Restore -Create an Office XP CD slipstreamed with Service Pack 3 ----- "sm" <anonymous@discussions.microsoft.com> wrote in message news:25bd01c457d0$fb2422c0$3501280a@phx.gbl... > Is there a way to create an email and attach various > emails that are filed in different folders? > > Thanks Or use Ins...

Count missing data
Hello, I would like to count missing data in a Column range due to the criteria in another column range. The problem I have is that the "Birth Date" column range has a "vlookup" formula in it, which sometimes formulates a Blank. I need to count these Blank cells when the Status = "A". Example: Birth Date Status 02/03/71 A A 12/02/58 A 09/15/67 A A 11/21/79 A Missing = 2 Thanks Ruan Try this: =SUMPRODUCT((A2:A100={" ",""})*(B2:B100="a")) -- HTH, RD...

EMAIL #41
WHY DOES MY EMAIL MESSAGE DELETE AFTER I READ A MESSAGE FROM MY INBOX,WHERE DOES IT GO,CAN I FIND THESE EMAILS? >-----Original Message----- >WHY DOES MY EMAIL MESSAGE DELETE AFTER I READ A MESSAGE >FROM MY INBOX,WHERE DOES IT GO,CAN I FIND THESE EMAILS? >. > You may try going into the VIEW - Arrange by - Current View- Messages and make sure you have Mesaages check and not Unread Messages in this folder. That is in outlook 2003, if another version, should be similar. "ROSE" <anonymous@discussions.microsoft.com> wrote in message news:6bac01c42ede$8cc2a380$a...

problem with send and receive in OUtlook
When I hit send/receive, the receiving process hangs and it does one of 2 things. Either 1. Outlook continuously downloads over and over again the same messages repeatedly or 2. It times out and doesn't send or receive anything. Please respond to jblankenship@thejrc.com if you can help ...

is it posible to convert text in a table to a query with vba code
Hi All, i'm trying to convert a formula in a table to an SQL sentence,is it posible? On Nov 12, 4:51 pm, thread <yaniv...@gmail.com> wrote: > Hi All, > i'm trying to convert a formula in a table to an SQL sentence,is it > posible? Please post a sample of what you are trying to accomplish. Thanks! On Mon, 12 Nov 2007 13:51:03 -0800, thread <yaniv.dg@gmail.com> wrote: >Hi All, >i'm trying to convert a formula in a table to an SQL sentence,is it >posible? Probably. Depends on the formula and what you want to do with it. Care to give us a hand? ...

How do I create custom stationery?
have Outlook 2003. I want to create a custom stationery with my business contact info that I can set as my default stationery for sending new messages. I used Word to create my file and I saved it as a web page. When I went to the stationery picker menu and browsed to the location where I saved this file, it wouldn't read it. How can I create a html file that will suffice? Thanks, victor See if anything in the following article helps (even though most of these articles were written for Outlook 2000): http://www.slipstick.com/mail1/html.htm#stationery -- Jocelyn Fiorello MVP - Ou...

I'm missing all past years emails in my hotmail account
For some reason i logged in into my hotmail account and noticed that all my past years are gone. I havent deleted anything. I'm missing emails from 2006 till 2009 all of them? Please help....what can i do? If the Hotmail account is set as your primary store, could it be that you have AutoArchive enabled? Tools-> Options-> tab Other-> button AutoArchive... -- Robert Sparnaaij [MVP-Outlook] Coauthor, Configuring Microsoft Outlook 2003 http://www.howto-outlook.com/ Outlook FAQ, HowTo, Downloads, Add-Ins and more http://www.msoutlook.info/ Real World Questions, Re...