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.Exception: Cannot create ActiveX component.
at Microsoft.VisualBasic.Interaction.CreateObject(Str ing ProgId, String
ServerName)
at PriceList.frmEmail.EmbeddedHTMLGraphicMessage(Stri ng EmailAddress,
String Subject, String BodyHTML)
at PriceList.frmEmail.Button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr 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__b77a5c561934e089/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__b77a5c561934e089/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__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.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__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Office.Interop.Outlook
Assembly Version: 11.0.0.0
Win32 Version: 11.0.5530
CodeBase:
file:///C:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Outlook/11.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Outlook.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.DLL
----------------------------------------
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 2800 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**************@TK2MSFTNGP05.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.Exception: Cannot create ActiveX component. at Microsoft.VisualBasic.Interaction.CreateObject(Str ing ProgId, String ServerName) at PriceList.frmEmail.EmbeddedHTMLGraphicMessage(Stri ng EmailAddress, String Subject, String BodyHTML) at PriceList.frmEmail.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr 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__b77a5c561934e089/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__b77a5c561934e089/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__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.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__b77a5c561934e089/System.Data.dll ---------------------------------------- System.Transactions Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll ---------------------------------------- System.EnterpriseServices Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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__b77a5c561934e089/System.Xml.dll ---------------------------------------- Microsoft.Office.Interop.Outlook Assembly Version: 11.0.0.0 Win32 Version: 11.0.5530 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Outlook/11.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Outlook.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.DLL ---------------------------------------- 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.SHDocVw.dll
Interop.MAPI.dll
Interop.Microsoft.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******@community.nospam> wrote in message
news:O5**************@TK2MSFTNGP03.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**************@TK2MSFTNGP05.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.Exception: Cannot create ActiveX component. at Microsoft.VisualBasic.Interaction.CreateObject(Str ing ProgId, String ServerName) at PriceList.frmEmail.EmbeddedHTMLGraphicMessage(Stri ng EmailAddress, String Subject, String BodyHTML) at PriceList.frmEmail.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr 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__b77a5c561934e089/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__b77a5c561934e089/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__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.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__b77a5c561934e089/System.Data.dll ---------------------------------------- System.Transactions Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll ---------------------------------------- System.EnterpriseServices Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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__b77a5c561934e089/System.Xml.dll ---------------------------------------- Microsoft.Office.Interop.Outlook Assembly Version: 11.0.0.0 Win32 Version: 11.0.5530 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Outlook/11.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Outlook.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.DLL ---------------------------------------- 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**************@TK2MSFTNGP03.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.SHDocVw.dll Interop.MAPI.dll Interop.Microsoft.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******@community.nospam> wrote in message news:O5**************@TK2MSFTNGP03.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**************@TK2MSFTNGP05.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.Exception: Cannot create ActiveX component. at Microsoft.VisualBasic.Interaction.CreateObject(Str ing ProgId, String ServerName) at PriceList.frmEmail.EmbeddedHTMLGraphicMessage(Stri ng EmailAddress, String Subject, String BodyHTML) at PriceList.frmEmail.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr 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__b77a5c561934e089/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__b77a5c561934e089/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__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.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__b77a5c561934e089/System.Data.dll ---------------------------------------- System.Transactions Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll ---------------------------------------- System.EnterpriseServices Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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__b77a5c561934e089/System.Xml.dll ---------------------------------------- Microsoft.Office.Interop.Outlook Assembly Version: 11.0.0.0 Win32 Version: 11.0.5530 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Outlook/11.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Outlook.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.DLL ---------------------------------------- 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...
|
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...
|
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...
|
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....
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
| |