473,779 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

eMail - funny characters

I send email using ASP.NET using SMTP like this:

objMailMessage. From = New System.Net.Mail .MailAddress(st rYourEmail)

objMailMessage. To.Add(to**@tot o.com)

objMailMessage. Subject = "Title"

objMailMessage. Body = "Message"

objMailMessage. IsBodyHtml = False

smtp.Send(objMa ilMessage)

I get the email and all accents are funny characters.

Suggestion to avoid the funny characters?

txs for answering....


May 7 '06 #1
2 1653
You would typically encode them.

Search on smtp and encode at google.

You can also manually replace the strings
with the proper encoding yourself.

--
Robbe Morris - 2004-2006 Microsoft MVP C#
Earn money answering .NET questions
http://www.eggheadcafe.com/forums/merit.asp

"Ramon" <Ra********@hot mail.com> wrote in message
news:IA******** ********@weber. videotron.net.. .
I send email using ASP.NET using SMTP like this:

objMailMessage. From = New System.Net.Mail .MailAddress(st rYourEmail)

objMailMessage. To.Add(to**@tot o.com)

objMailMessage. Subject = "Title"

objMailMessage. Body = "Message"

objMailMessage. IsBodyHtml = False

smtp.Send(objMa ilMessage)

I get the email and all accents are funny characters.

Suggestion to avoid the funny characters?

txs for answering....

May 7 '06 #2
Set the BodyEncoding property to some encoding that supports the characters.

Ramon wrote:
I send email using ASP.NET using SMTP like this:

objMailMessage. From = New System.Net.Mail .MailAddress(st rYourEmail)

objMailMessage. To.Add(to**@tot o.com)

objMailMessage. Subject = "Title"

objMailMessage. Body = "Message"

objMailMessage. IsBodyHtml = False

smtp.Send(objMa ilMessage)

I get the email and all accents are funny characters.

Suggestion to avoid the funny characters?

txs for answering....

May 8 '06 #3

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

Similar topics

2
1816
by: Fred | last post by:
Hi, I am parsing a small xml document and the parseing goes 'all funny' when parsing this element: <useragent>Mozilla/4.61 (WinNT; I)</useragent> I've created a subclass of org.xml.sax.helpers.DefaultHandler, and an instance of this subclass is set on my org.apache.xerces.parsers.SAXParser:
0
293
by: magister | last post by:
Hi I am sending emails from my website. The from field usually is an email address, but alot of email readers also seem to be able to pickup a "from real name". I read somewhere that I can set this by putting the name followed by the actual email address in parathesis....like this... MailMessage msgMail = new MailMessage(); msgMail.To = EmailAddress.Text; msgMail.From = "funny email Website" + "(website@funny.net)"; msgMail.Subject =...
5
404
by: Matt | last post by:
I wrote the tcp socket client-server program that the server will echo the message received from the client. In client program: char sendBuf; while(1) { cout << "Enter message:"; cin.getline(sendBuf,100); rVal = send(theSocket, sendBuf, strlen(sendBuf), 0);
117
11894
by: Steevo | last post by:
Any suggestions as to the best programs for cloaking email addresses? Many thanks -- Steevo
2
9206
by: Salman | last post by:
When I run the below method with a 64 character string as input such as: sr.Encrypt("1234567890123456789012345678901234567890123456789012345678904444"); I get square boxes as my output, which means that some characters are not being mapped in the encodings. What could be the problem? Since my output is funny characters, my decrption will as a result fail since it contiains invalid characters when I do a
4
4627
by: jason.teen | last post by:
Hi, when i am joining on a Column of Text Type with one of Memo type the resulting entry has funny chinese characters! Has anyone else encountered this before? Is there a cure?? Cheers.
2
2173
by: msxkim | last post by:
My web app writes some binary data to a file at the client site via Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as follows: private void SubmitButton_Click (object sender, System.EventArgs e) { // Set up the response to write the print file to the client Response.Clear (); Response.Buffer=false;
1
2027
by: kellysgirl | last post by:
Step 3 – Add code in the Form’s Load event to select the first radio button: In the Form’s Load event, write code to select the Comma choice in the radio buttons group box. Step 4 – Add code in the Parse Text to List button’s Click event to parse and load the list box: You will need the variables shown in Table 1: Variable name Type Use delimiter String Holds the String character representing the chosen delimiter ...
3
2278
by: sophie_newbie | last post by:
Hi, I want to store python text strings that characters like "é" "Č" in a mysql varchar text field. Now my problem is that mysql does not seem to accept these characters. I'm wondering if there is any way I can somehow "encode" these characters to appear as normal characters and then "decode" them when I want to get them out of the database again? -Thanks.
0
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10306
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9931
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.