473,378 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

System.Web.Mail namespace problem, not having IBodyParts interface

Hi,

we are porting an existing VB/COM application on .NET. This
application is typically a mailing engine. For sending mails it uses
CDO. As part of development in .NET we are using System.Web.Mail
namespace.

Mails can have attachments also of different types as word files, html
files etc. But there is a case when a previously sent mail need to
send as attachment in the new mail, means attachment type is an
Outlook item. For this existing application uses IBodyPart interface
and function SaveToObject, but THERE IS NO CORRESPONDING FUNCTION OR
CLASSES in .NET library, and we dont want to use COM interop to use
CDO library.

Is there any possible way to do that, without using any COM libraries.

Thanks in advance
Brajesh Jain
Nov 16 '05 #1
2 1126
Brajesh,

Unfortunately, no, there is not. Any wrapper to the CDO library is
going to use COM interop beneath the sheets.

Do you not want to do this because it would force you to turn ASPCompat
on? If this is the case, you can offload the work that does COM interop
onto another thread where you set the apartment state to what you need it to
be. That way, you won't kill the performance of any ASP.NET worker threads.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Brajesh Jain" <ja**********@indiatimes.com> wrote in message
news:2a**************************@posting.google.c om...
Hi,

we are porting an existing VB/COM application on .NET. This
application is typically a mailing engine. For sending mails it uses
CDO. As part of development in .NET we are using System.Web.Mail
namespace.

Mails can have attachments also of different types as word files, html
files etc. But there is a case when a previously sent mail need to
send as attachment in the new mail, means attachment type is an
Outlook item. For this existing application uses IBodyPart interface
and function SaveToObject, but THERE IS NO CORRESPONDING FUNCTION OR
CLASSES in .NET library, and we dont want to use COM interop to use
CDO library.

Is there any possible way to do that, without using any COM libraries.

Thanks in advance
Brajesh Jain

Nov 16 '05 #2
ja**********@indiatimes.com (Brajesh Jain) wrote in
news:2a**************************@posting.google.c om:
and function SaveToObject, but THERE IS NO CORRESPONDING FUNCTION OR
CLASSES in .NET library, and we dont want to use COM interop to use
CDO library.

Is there any possible way to do that, without using any COM libraries.


Try Indy. Its .NET and free.

www.indyproject.org

VB mail demo at:
www.atozed.com/indy
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Merlynx | last post by:
This namespace is not found when i try to import it. I have the .NET Framework 1.1 installed :(
3
by: Phil Mc | last post by:
Hi has anyone come accross the problem.... with referance to System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail THIS WORKS FINE mail=new MailMessage(); mail.From =...
5
by: martin | last post by:
Hi, I have created a class that is totally seperate from my web application. However this class is used extensivly by the web application for stuff like data access. I wish to add a function to...
6
by: Mark Rae | last post by:
Hi, I'm in the process of updating an ASP.NET v1.1 web app to v2. The app uses ActiveDirectory a great deal, and I'm trying to use the new System.Collections.Generic namespace where possible,...
2
by: andresguzcar | last post by:
Hi all, i m having a hard time trying to make this e-mail thing work. The problem isnīt in the class as far I can see but instead seems to be in the configuration of the mail server. When my...
2
by: =?Utf-8?B?cXVpbGtpbg==?= | last post by:
Hi We are using system.web.mail with .Net 1.1 (.Net 2.00 under development) and some of our users are reporting that having multiple names in the 'to' field for sending emails (using smtpmail)...
12
by: kimiraikkonen | last post by:
Hello, I'm trying to create a basic SMTP mail sender using that code, i'm using VB.NET 2005 "express" but this namespace wasn't recognized... (system.web.MAIL) I'm only allowed to declare under...
7
by: WTH | last post by:
I am now aware (I am primarily a C++ developer) that in C# if you reference the same interface from the same file in two different projects the types are actually incompatible. I found this out...
2
by: Prefers Golfing | last post by:
We are having to extend the System.Net.Mail namespace and need some help with coding it. We have added several properties to System.Net.Mail.Attachment and need to add our several of them to...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.