charset and content-transfer-encoding in c#

B

Brajesh Jain

Hi,
i m working on a vb 6.0 to c# conversion project. It is a mailing
application.Existing code uses CDO library for that and this code uses
content-type-encoding and charset properties for the message
existing code is like that
Dim m As CDO.Message

m.HTMLBodyPart.Charset = MsgCharset

m.HTMLBodyPart.ContentTransferEncoding =
MsgContentTransferEncoding

m.TextBodyPart.Charset = MsgCharset

m.TextBodyPart.ContentTransferEncoding =
MsgContentTransferEncoding



but i m not able to find out how to do same thing in the c#.

can anybody help me out

Thansk & Regards
Brajesh
 
N

Nicholas Paldino [.NET/C# MVP]

Brajesh,

I have found that the classes in the System.Web.Mail namespace are not
as detailed as what CDO offers. Because of that, I would use COM interop
and then access the CDO components through .NET.

Either that, or use a third-party component.

Hope this helps.
 
B

Brajesh Jain

Hi Nicholas,
Thanks for ur information. Actually as a last option i want to take
COM interop, thats why i was wondering even through some round abt way
or by coding myself, is it possible...

anyway thankyou very much

Regards
Brajesh

Nicholas Paldino said:
Brajesh,

I have found that the classes in the System.Web.Mail namespace are not
as detailed as what CDO offers. Because of that, I would use COM interop
and then access the CDO components through .NET.

Either that, or use a third-party component.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- nick(dot)paldino=at=exisconsulting<dot>com

Brajesh Jain said:
Hi,
i m working on a vb 6.0 to c# conversion project. It is a mailing
application.Existing code uses CDO library for that and this code uses
content-type-encoding and charset properties for the message
existing code is like that
Dim m As CDO.Message

m.HTMLBodyPart.Charset = MsgCharset

m.HTMLBodyPart.ContentTransferEncoding =
MsgContentTransferEncoding

m.TextBodyPart.Charset = MsgCharset

m.TextBodyPart.ContentTransferEncoding =
MsgContentTransferEncoding



but i m not able to find out how to do same thing in the c#.

can anybody help me out

Thansk & Regards
Brajesh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top