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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

need help w/ sending an e-mail -- outlook 2007 addin



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 11th 09, 05:17 AM posted to microsoft.public.outlook.program_addins
TechRetard
external usenet poster
 
Posts: 1
Default need help w/ sending an e-mail -- outlook 2007 addin

I wrote an outlook 2007 add-in that brought up a WPF window w/ fields to fill
out, and when you clicked the create e-mail button, it created an e-mail
based on the contents of the form. The problem lies in that it is bringing up
almost a "generic" e-mail -- it doesn't have my signature on it, if Microsoft
CRM is loaded it won't have the 'track in crm' listed -- it's almost as if it
doesn't know it's me sending it, but when i send the e-mail, it always sends
from my default account (which is good). Any help??

Outlook.Application App1 = new Microsoft.Office.Interop.Outlook.Application();

Outlook.MailItem mail1 = (Outlook.MailItem)
App1.CreateItem(Microsoft.Office.Interop.Outlook.O lItemType.olMailItem);


  #2  
Old August 11th 09, 02:58 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default need help w/ sending an e-mail -- outlook 2007 addin

If this is in an Outlook addin use the Outlook.Application object passed to
you, don't use New to create a new instance of the application.

CRM no one here will be able to help with, I doubt there's much if any
expertise on that here.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"TechRetard" wrote in message
...
I wrote an outlook 2007 add-in that brought up a WPF window w/ fields to
fill
out, and when you clicked the create e-mail button, it created an e-mail
based on the contents of the form. The problem lies in that it is bringing
up
almost a "generic" e-mail -- it doesn't have my signature on it, if
Microsoft
CRM is loaded it won't have the 'track in crm' listed -- it's almost as if
it
doesn't know it's me sending it, but when i send the e-mail, it always
sends
from my default account (which is good). Any help??

Outlook.Application App1 = new
Microsoft.Office.Interop.Outlook.Application();

Outlook.MailItem mail1 = (Outlook.MailItem)
App1.CreateItem(Microsoft.Office.Interop.Outlook.O lItemType.olMailItem);



  #3  
Old August 12th 09, 03:06 AM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP][_2_]
external usenet poster
 
Posts: 89
Default need help w/ sending an e-mail -- outlook 2007 addin

If you want the signature to display, create the message, return its
Inspector with GetInspector -- that should cause the signature to be inserted
-- and then concatenate or insert your new content into the existing message
content.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54

"TechRetard" wrote:

I wrote an outlook 2007 add-in that brought up a WPF window w/ fields to fill
out, and when you clicked the create e-mail button, it created an e-mail
based on the contents of the form. The problem lies in that it is bringing up
almost a "generic" e-mail -- it doesn't have my signature on it, if Microsoft
CRM is loaded it won't have the 'track in crm' listed -- it's almost as if it
doesn't know it's me sending it, but when i send the e-mail, it always sends
from my default account (which is good). Any help??

Outlook.Application App1 = new Microsoft.Office.Interop.Outlook.Application();

Outlook.MailItem mail1 = (Outlook.MailItem)
App1.CreateItem(Microsoft.Office.Interop.Outlook.O lItemType.olMailItem);


 




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
Mail not Sending in Outlook 2007 Brent Harrelson Outlook - General Queries 1 November 9th 07 09:55 PM
Outlook 2007 Addin: View and Edit Email Before Sending Chris[_2_] Add-ins for Outlook 1 August 13th 07 02:27 PM
Please help! Sending mail in Outlook from a COM addin. Dewey Add-ins for Outlook 1 July 19th 07 08:44 AM
Sending from Word with Outlook COM Addin james Add-ins for Outlook 0 May 30th 06 02:44 PM
Sending mail with attachment from my vb6 addin [email protected] Add-ins for Outlook 1 April 27th 06 08:03 AM


All times are GMT +1. The time now is 08:24 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-2025 Outlook Banter.
The comments are property of their posters.