473,414 Members | 1,599 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,414 software developers and data experts.

charset and content-transfer-encoding in c#

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
Nov 15 '05 #1
2 6195
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" <ja**********@indiatimes.com> wrote in message
news:2a**************************@posting.google.c om...
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

Nov 15 '05 #2
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 [.NET/C# MVP]" <ni**************@exisconsulting.com> wrote in message news:<ek*************@TK2MSFTNGP09.phx.gbl>...
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" <ja**********@indiatimes.com> wrote in message
news:2a**************************@posting.google.c om...
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

Nov 15 '05 #3

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

Similar topics

4
by: CJ Oxx | last post by:
I have a problem with browser charset recognition when using PHP 4.1.2 (this is the PHP version which our hosting company provides). For charset recognition, I use the following meta-tag: <meta...
30
by: The Plankmeister | last post by:
In the <meta http-equiv="Content-Type" content="text/html; charset=????????"> tag, what is the best charset to use? I tend to use UTF-8, for no reason other than it sounds much cooler than...
5
by: Lőrinczy Zsigmond | last post by:
Hello I open a window from JavaScript with w=window.open, write content with w.document.open,w.document.write, w.document.close. I specified charset with <meta http-equiv="Content-Type"...
35
by: The Bicycling Guitarist | last post by:
My web site has not been spidered by Googlebot since April 2003. The site in question is at www.TheBicyclingGuitarist.net/ I received much help from this NG and the stylesheets NG when updating the...
28
by: Xiaotian Sun | last post by:
I added the following line to the header of my html file <meta http-equiv="content-type" content="text/html; charset=utf-8"> hoping browsers will use UTF-8 encoding. But all browsers I tried...
0
by: Chris | last post by:
Hi, I am relatively new to using CDO.Message, and I desperately need some help! I have an ASP 3.0 application that uses CDO to send automatic alerts through Exchange 2003. How do I determine...
7
by: gmclee | last post by:
Hi there, I am writing a program to load HTML from file and send it to IE directly. I've met some problem in charset setting. Most of HTML have charset "us-ascii", for some reason, some UNICODE...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
2
by: vunet.us | last post by:
I translate my website to German and some ASCII characters are not translated by my browser. For example I see this: &#x00FC; I use charset: <meta http-equiv="Content-Type" content="text/html;...
4
by: =?ISO-8859-1?Q?Fran=E7ois_Patte?= | last post by:
Bonjour, I am wondering why the @charset rule is not working for me. I put at the early beginning of my index.css file: @charset "utf-8"; no line before....
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.