PhilWilliams
Thu Nov 04 07:23:04 CST 2004
Gudmundur,
I wouldn't use Automation unless you want only to support Outlook. The
object model for different mail clients will be different, if they exist at
all (Outlook Express doesn't support Automation). Plus the object models
differ between versions of Outlook.
Have a look at Simple MAPI or CDO (also known as Extended MAPI). Simple
MAPI is older and has less functionality (but is supported by Outlook
Express). CDO has a more functionality but isn't supported by Outlook Express.
If I had to choose I would probably use Simple MAPI. Have a look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/_mapi1book_about_simple_mapi.asp
Regards,
Phil.
""Jeffrey Tan[MSFT]"" wrote:
> Hi Gudmundur,
>
> Based on my understanding, you want to leverage the mail client installed
> on your machine to send email.
>
> For this issue, we need not use System.Web.Mail namespace. We should
> leverage the programming interface exposed by the application. For other
> non-microsoft email client, I think you should refer to the document of
> that product. Microsoft has 2 mail clients: Outlook Express and Outlook.
>
> For Outlook, we can use automation to invoke it to send mail. Please refer
> to below link:
> "An Introduction to Programming Outlook 2003 Using C#"
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechar
> t/html/ol03csharp.asp
> and
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaol11/htm
> l/olmthSend.asp
>
> For Outlook Express, we can not use the automation.
> ==========================
> Thank you for your patience and cooperation. If you have any questions or
> concerns, please feel free to post it in the group. I am standing by to be
> of assistance.
>
> Best regards,
> Jeffrey Tan
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
>
>