Hi,
A little while ago I wrote a small program that allowed the user to view
products from a database. The database holds the details of the products
which can be viewed via a form and additionally pictures of the product are
stored in an images subfolder and the database holds the file name of the
relevant picture. The user can then click a button to display the picture in
a pop-up window and also another button to email the potential customer with
the details and the picture embedded in the HTML formatted email.
This all worked swimmingly when the client was using Office 2000, since they
have moved to Office 2003 I get loads of problems at the point where MAPI is
accessed with the following:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Exceptio n: Cannot create ActiveX component.
at Microsoft.Visua lBasic.Interact ion.CreateObjec t(String ProgId, String
ServerName)
at PriceList.frmEm ail.EmbeddedHTM LGraphicMessage (String EmailAddress,
String Subject, String BodyHTML)
at PriceList.frmEm ail.Button1_Cli ck(Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
PriceList
Assembly Version: 1.0.2314.1775
Win32 Version: 1.0.2314.1775
CodeBase:
file:///C:/Program%20Files/Tamarisk/The%20Pricelist %20Application/PriceList.exe
----------------------------------------
System.Windows. Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows. Forms/2.0.0.0__b77a5c 561934e089/System.Windows. Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c 561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f 7f11d50a3a/System.Drawing. dll
----------------------------------------
Microsoft.Visua lBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Visua lBasic/8.0.0.0__b03f5f 7f11d50a3a/Microsoft.Visua lBasic.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c 561934e089/System.Data.dll
----------------------------------------
System.Transact ions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Transact ions/2.0.0.0__b77a5c 561934e089/System.Transact ions.dll
----------------------------------------
System.Enterpri seServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Enterpri seServices/2.0.0.0__b03f5f 7f11d50a3a/System.Enterpri seServices.dll
----------------------------------------
System.Configur ation
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configur ation/2.0.0.0__b03f5f 7f11d50a3a/System.Configur ation.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c 561934e089/System.Xml.dll
----------------------------------------
Microsoft.Offic e.Interop.Outlo ok
Assembly Version: 11.0.0.0
Win32 Version: 11.0.5530
CodeBase:
file:///C:/WINDOWS/assembly/GAC/Microsoft.Offic e.Interop.Outlo ok/11.0.0.0__71e9b ce111e9429c/Microsoft.Offic e.Interop.Outlo ok.dll
----------------------------------------
Interop.MAPI
Assembly Version: 1.21.0.0
Win32 Version: 1.21.0.0
CodeBase:
file:///C:/Program%20Files/Tamarisk/The%20Pricelist %20Application/Interop.MAPI.DL L
----------------------------------------
On reading the Microsoft notes I can find on MSDN it appears that MS don't
want you creating HTML based email using calls to MAPI and suggest that you
do it using System.Web.Mail or other components.
Has anyone had this problem and found a way to create emails using Outlook
without needing to use MAPI or not using MAPI directly. I have been
scouring the NET and can't really find a solution that uses managed code. I
want to keep the email within Outlook rather than directly sending using
SMTP mail as I would like the user to have a record in their sent items of
the customers they have sent information about products to.
Any help greatfully accepted.
--
Siv
Martley, Near Worcester, United Kingdom. 3 2851 http://support.microsoft.com/default...b;en-us;327219
--
Get a powerful web, database, application, and email hosting with KJM
Solutions http://www.kjmsolutions.com
"Siv" <dotnet@remove_ me.sivill.com> wrote in message
news:uZ******** ******@TK2MSFTN GP05.phx.gbl... Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and additionally pictures of the product are stored in an images subfolder and the database holds the file name of the relevant picture. The user can then click a button to display the picture in a pop-up window and also another button to email the potential customer with the details and the picture embedded in the HTML formatted email.
This all worked swimmingly when the client was using Office 2000, since they have moved to Office 2003 I get loads of problems at the point where MAPI is accessed with the following:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.Exceptio n: Cannot create ActiveX component. at Microsoft.Visua lBasic.Interact ion.CreateObjec t(String ProgId, String ServerName) at PriceList.frmEm ail.EmbeddedHTM LGraphicMessage (String EmailAddress, String Subject, String BodyHTML) at PriceList.frmEm ail.Button1_Cli ck(Object sender, EventArgs e) at System.Windows. Forms.Control.O nClick(EventArg s e) at System.Windows. Forms.Button.On Click(EventArgs e) at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent) at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks) at System.Windows. Forms.Control.W ndProc(Message& m) at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m) at System.Windows. Forms.Button.Wn dProc(Message& m) at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m) at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m) at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- PriceList Assembly Version: 1.0.2314.1775 Win32 Version: 1.0.2314.1775 CodeBase: file:///C:/Program%20Files/Tamarisk/The%20Pricelist %20Application/PriceList.exe ---------------------------------------- System.Windows. Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows. Forms/2.0.0.0__b77a5c 561934e089/System.Windows. Forms.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c 561934e089/System.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f 7f11d50a3a/System.Drawing. dll ---------------------------------------- Microsoft.Visua lBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Visua lBasic/8.0.0.0__b03f5f 7f11d50a3a/Microsoft.Visua lBasic.dll ---------------------------------------- System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c 561934e089/System.Data.dll ---------------------------------------- System.Transact ions Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transact ions/2.0.0.0__b77a5c 561934e089/System.Transact ions.dll ---------------------------------------- System.Enterpri seServices Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Enterpri seServices/2.0.0.0__b03f5f 7f11d50a3a/System.Enterpri seServices.dll ---------------------------------------- System.Configur ation Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configur ation/2.0.0.0__b03f5f 7f11d50a3a/System.Configur ation.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c 561934e089/System.Xml.dll ---------------------------------------- Microsoft.Offic e.Interop.Outlo ok Assembly Version: 11.0.0.0 Win32 Version: 11.0.5530 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.Offic e.Interop.Outlo ok/11.0.0.0__71e9b ce111e9429c/Microsoft.Offic e.Interop.Outlo ok.dll ---------------------------------------- Interop.MAPI Assembly Version: 1.21.0.0 Win32 Version: 1.21.0.0 CodeBase: file:///C:/Program%20Files/Tamarisk/The%20Pricelist %20Application/Interop.MAPI.DL L ---------------------------------------- On reading the Microsoft notes I can find on MSDN it appears that MS don't want you creating HTML based email using calls to MAPI and suggest that you do it using System.Web.Mail or other components.
Has anyone had this problem and found a way to create emails using Outlook without needing to use MAPI or not using MAPI directly. I have been scouring the NET and can't really find a solution that uses managed code. I want to keep the email within Outlook rather than directly sending using SMTP mail as I would like the user to have a record in their sent items of the customers they have sent information about products to.
Any help greatfully accepted.
-- Siv Martley, Near Worcester, United Kingdom.
Hi,
Thanks for your reply, I was hoping to report back and let you know if the
suggestion worked but I can't get access to the PC that is causing me
problems at the moment (I am remote support/development for the client) so
when I have tried these suggestions I will report back.
The main thrust of the original post though was to see if anyone had tackled
this problem without using MAPI. I have looked at loads of examples but
most people seem to be sending using SMTP directly and I have not found any
examples that use embedded graphics, most use embedded links to graphics on
a web server which isn't what I need to do, the graphics must appear within
the body of the HTML email. My existing code does this quite happily but
doesn't seem to work where the user has Office 2003 installed? However it
works fine on my own system which does have office 2003 only installed.
I have tested the application within the VS.Net environment and as a
standalone exe file and it runs fine on my system. The setup program places
the following DLL files into the program files folder:
AxInterop.SHDoc Vw.dll
Interop.MAPI.dl l
Interop.Microso ft.Office.Core. dll
Interop.Outlook .dll
Interop.SHDocVw .dll
MSO.DLL
stdole.dll
msoutl.olb
PriceList.exe
PriceList.pdb
PriceList.exe being the main program file.
Thanks
Siv
"vbnetdev" <vb******@commu nity.nospam> wrote in message
news:O5******** ******@TK2MSFTN GP03.phx.gbl... http://support.microsoft.com/default...b;en-us;327219
-- Get a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "Siv" <dotnet@remove_ me.sivill.com> wrote in message news:uZ******** ******@TK2MSFTN GP05.phx.gbl... Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and additionally pictures of the product are stored in an images subfolder and the database holds the file name of the relevant picture. The user can then click a button to display the picture in a pop-up window and also another button to email the potential customer with the details and the picture embedded in the HTML formatted email.
This all worked swimmingly when the client was using Office 2000, since they have moved to Office 2003 I get loads of problems at the point where MAPI is accessed with the following:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.Exceptio n: Cannot create ActiveX component. at Microsoft.Visua lBasic.Interact ion.CreateObjec t(String ProgId, String ServerName) at PriceList.frmEm ail.EmbeddedHTM LGraphicMessage (String EmailAddress, String Subject, String BodyHTML) at PriceList.frmEm ail.Button1_Cli ck(Object sender, EventArgs e) at System.Windows. Forms.Control.O nClick(EventArg s e) at System.Windows. Forms.Button.On Click(EventArgs e) at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent) at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks) at System.Windows. Forms.Control.W ndProc(Message& m) at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m) at System.Windows. Forms.Button.Wn dProc(Message& m) at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m) at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m) at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- PriceList Assembly Version: 1.0.2314.1775 Win32 Version: 1.0.2314.1775 CodeBase: file:///C:/Program%20Files/Tamarisk/The%20Pricelist %20Application/PriceList.exe ---------------------------------------- System.Windows. Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows. Forms/2.0.0.0__b77a5c 561934e089/System.Windows. Forms.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c 561934e089/System.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f 7f11d50a3a/System.Drawing. dll ---------------------------------------- Microsoft.Visua lBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Visua lBasic/8.0.0.0__b03f5f 7f11d50a3a/Microsoft.Visua lBasic.dll ---------------------------------------- System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c 561934e089/System.Data.dll ---------------------------------------- System.Transact ions Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transact ions/2.0.0.0__b77a5c 561934e089/System.Transact ions.dll ---------------------------------------- System.Enterpri seServices Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Enterpri seServices/2.0.0.0__b03f5f 7f11d50a3a/System.Enterpri seServices.dll ---------------------------------------- System.Configur ation Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configur ation/2.0.0.0__b03f5f 7f11d50a3a/System.Configur ation.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c 561934e089/System.Xml.dll ---------------------------------------- Microsoft.Offic e.Interop.Outlo ok Assembly Version: 11.0.0.0 Win32 Version: 11.0.5530 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.Offic e.Interop.Outlo ok/11.0.0.0__71e9b ce111e9429c/Microsoft.Offic e.Interop.Outlo ok.dll ---------------------------------------- Interop.MAPI Assembly Version: 1.21.0.0 Win32 Version: 1.21.0.0 CodeBase: file:///C:/Program%20Files/Tamarisk/The%20Pricelist %20Application/Interop.MAPI.DL L ---------------------------------------- On reading the Microsoft notes I can find on MSDN it appears that MS don't want you creating HTML based email using calls to MAPI and suggest that you do it using System.Web.Mail or other components.
Has anyone had this problem and found a way to create emails using Outlook without needing to use MAPI or not using MAPI directly. I have been scouring the NET and can't really find a solution that uses managed code. I want to keep the email within Outlook rather than directly sending using SMTP mail as I would like the user to have a record in their sent items of the customers they have sent information about products to.
Any help greatfully accepted.
-- Siv Martley, Near Worcester, United Kingdom.
Afraid to say the changes made in the KB article made no difference, I think
the error is in my code at the point that the MAPI login occurs.
Siv
"Siv" <dotnet@remove_ me.sivill.com> wrote in message
news:OX******** ******@TK2MSFTN GP03.phx.gbl... Hi, Thanks for your reply, I was hoping to report back and let you know if the suggestion worked but I can't get access to the PC that is causing me problems at the moment (I am remote support/development for the client) so when I have tried these suggestions I will report back.
The main thrust of the original post though was to see if anyone had tackled this problem without using MAPI. I have looked at loads of examples but most people seem to be sending using SMTP directly and I have not found any examples that use embedded graphics, most use embedded links to graphics on a web server which isn't what I need to do, the graphics must appear within the body of the HTML email. My existing code does this quite happily but doesn't seem to work where the user has Office 2003 installed? However it works fine on my own system which does have office 2003 only installed.
I have tested the application within the VS.Net environment and as a standalone exe file and it runs fine on my system. The setup program places the following DLL files into the program files folder:
AxInterop.SHDoc Vw.dll Interop.MAPI.dl l Interop.Microso ft.Office.Core. dll Interop.Outlook .dll Interop.SHDocVw .dll MSO.DLL stdole.dll msoutl.olb PriceList.exe PriceList.pdb
PriceList.exe being the main program file.
Thanks Siv
"vbnetdev" <vb******@commu nity.nospam> wrote in message news:O5******** ******@TK2MSFTN GP03.phx.gbl... http://support.microsoft.com/default...b;en-us;327219
-- Get a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "Siv" <dotnet@remove_ me.sivill.com> wrote in message news:uZ******** ******@TK2MSFTN GP05.phx.gbl... Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and additionally pictures of the product are stored in an images subfolder and the database holds the file name of the relevant picture. The user can then click a button to display the picture in a pop-up window and also another button to email the potential customer with the details and the picture embedded in the HTML formatted email.
This all worked swimmingly when the client was using Office 2000, since they have moved to Office 2003 I get loads of problems at the point where MAPI is accessed with the following:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.Exceptio n: Cannot create ActiveX component. at Microsoft.Visua lBasic.Interact ion.CreateObjec t(String ProgId, String ServerName) at PriceList.frmEm ail.EmbeddedHTM LGraphicMessage (String EmailAddress, String Subject, String BodyHTML) at PriceList.frmEm ail.Button1_Cli ck(Object sender, EventArgs e) at System.Windows. Forms.Control.O nClick(EventArg s e) at System.Windows. Forms.Button.On Click(EventArgs e) at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent) at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks) at System.Windows. Forms.Control.W ndProc(Message& m) at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m) at System.Windows. Forms.Button.Wn dProc(Message& m) at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m) at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m) at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- PriceList Assembly Version: 1.0.2314.1775 Win32 Version: 1.0.2314.1775 CodeBase: file:///C:/Program%20Files/Tamarisk/The%20Pricelist %20Application/PriceList.exe ---------------------------------------- System.Windows. Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows. Forms/2.0.0.0__b77a5c 561934e089/System.Windows. Forms.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c 561934e089/System.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f 7f11d50a3a/System.Drawing. dll ---------------------------------------- Microsoft.Visua lBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Visua lBasic/8.0.0.0__b03f5f 7f11d50a3a/Microsoft.Visua lBasic.dll ---------------------------------------- System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c 561934e089/System.Data.dll ---------------------------------------- System.Transact ions Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transact ions/2.0.0.0__b77a5c 561934e089/System.Transact ions.dll ---------------------------------------- System.Enterpri seServices Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Enterpri seServices/2.0.0.0__b03f5f 7f11d50a3a/System.Enterpri seServices.dll ---------------------------------------- System.Configur ation Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configur ation/2.0.0.0__b03f5f 7f11d50a3a/System.Configur ation.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c 561934e089/System.Xml.dll ---------------------------------------- Microsoft.Offic e.Interop.Outlo ok Assembly Version: 11.0.0.0 Win32 Version: 11.0.5530 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.Offic e.Interop.Outlo ok/11.0.0.0__71e9b ce111e9429c/Microsoft.Offic e.Interop.Outlo ok.dll ---------------------------------------- Interop.MAPI Assembly Version: 1.21.0.0 Win32 Version: 1.21.0.0 CodeBase: file:///C:/Program%20Files/Tamarisk/The%20Pricelist %20Application/Interop.MAPI.DL L ---------------------------------------- On reading the Microsoft notes I can find on MSDN it appears that MS don't want you creating HTML based email using calls to MAPI and suggest that you do it using System.Web.Mail or other components.
Has anyone had this problem and found a way to create emails using Outlook without needing to use MAPI or not using MAPI directly. I have been scouring the NET and can't really find a solution that uses managed code. I want to keep the email within Outlook rather than directly sending using SMTP mail as I would like the user to have a record in their sent items of the customers they have sent information about products to.
Any help greatfully accepted.
-- Siv Martley, Near Worcester, United Kingdom.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ian |
last post by:
Hi,
I'm a newbie (oh no I can here you say.... another one...)
How can I get Python to send emails using the default windows email
client (eg outlook express)?
I thought I could just do the following
import win32com.client
|
by: Fritz Switzer |
last post by:
Can anyone provide a small snippet in C# that pulls out the Contacts in
Outlook XP.
I've seen a couple of examples in C++ and VB in previous newsgroup posts,
but either the originals didn't work or my conversion skills are weak. And
if I have to use tlbimp.exe what is the right file to use.
Thanks for the help.
--
Fritz
|
by: Kurt |
last post by:
Hi
We are developing an off-the-shelf software suite for a certain business sector. Most of the program is simply a GUI on top of some .mdb files. Its a .net application written in c#
One major requirement is "Outlook Integration". The Outlook contact folders are to be used for contact management
I want to know what is the standard way to do this these days. Most of the information in MSDN seems rather old
I first used the Outlook...
|
by: jand187 |
last post by:
Hi,
I need to open an email in outlook (exchange) with most of the fields
filled out and a file attached. I don't want to send the mail right
away as the user must be able to edit the body text.
How can I accomplish this from a Windows Form written in C# ?
I know about the System.Web.Mail stuff, but that can only send the
email. I've also tried using the System.Diagnostics.Start("mailto:")
|
by: John |
last post by:
Hi
I am using the following code to search for an email message with id myID;
Dim SentFld As Outlook.MAPIFolder
Dim Email As Outlook.MailItem
Dim I As Integer
OutlookApp = New Outlook.Application
SentFld =
| |
by: George McCullen |
last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in oItems" loop. After about 250 contacts, the program gives an InvalidCastException Error on the for each loop. I notice that Outlook's memory keeps increasing (using the task manager) until it reaches around 20,000K. When I run the program a second...
|
by: Siv |
last post by:
Hi,
A little while ago I asked if anyone could help me with how to create an
email using MS Outlook that contained an embedded picture file.
Thanks to Jay Harlow I was able to get this working using a code example
from http://www.outlookcode.com/d/code/htmlimg.htm that details the
procedure and with a bit of tweaking I managed to get it working really
well.
I now find that there is a new user on a laptop that always gets an error at...
|
by: Manuel |
last post by:
Hi,
Using the PIA "Microsoft Outlook 11 Object Library".
I've noticed that the Logon method of the NameSpace Object is simply ignored.
My Outlook 2003 is full updated.
For example if I write:
Dim oApp As New Outlook.Application
|
by: tomer.ha |
last post by:
Hi there,
I'd like to send emails from a Python program using Simple MAPI. I've
tried this code: http://mail.python.org/pipermail/python-list/2004-December/298066.html
and it works well with Outlook Express 6 and Thunderbird 1.5, but it
doens't work at all with Microsoft Outlook 2007. I keep getting this
message: "WindowsError: MAPI error 2".
I don't want to use Extended MAPI because it doesn't support
thunderbird not OE. Therefore,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |