Mail langauge problem

Hi all

i have problem when i send  email words in arabic appear as ????

Here the code

MailMessage mm = new MailMessage();

mm.From = TextBox1.Text;

mm.To = TextBox2.Text;

mm.Subject =
"دعوة لزيارة موقعنا ";

mm.Body = "لزيارة موقعنا " + TextBox1.Text + " لقد دعاك صديقك"  ;

mm.Priority = MailPriority.High;

mm.BodyFormat = MailFormat.Text;

plz help

4/27/2009 6:59:58 AM 2171 articles. 0 followers. Follow

5 Replies

Similar Articles

[PageSpeed] 32

I'm guessing the machine the email is read from doesn't have the required fonts installed. Not everyone installs arabic fonts by default. The best you can do is to use standard unicodewhen sending the mail.

All that glitters is gold-
Only shooting stars break the mold.
4/27/2009 7:10:17 AM

no i have required arabic fonts on the machine where i open the email

and i neccasry use arabic font


4/27/2009 7:36:37 AM

Make sure you're using the System.Net.Mail namespace. System.Web.Mail is obsolete.

Try these (with System.Net.Mail):

MailMessage msg = new MailMessage();

msg.BodyEncoding = System.Text.Encoding.Unicode;

msg.SubjectEncoding = System.Text.Encoding.Unicode;

And then also try setting:

msg.IsBodyHtml = true;

[be sure to send an html body in that case, but the encodings shoud do it.]

If that doesn't work, try seeing if you can send arabic mail from the mail provider you're using (i.e. from the browser and not from your app).

All that glitters is gold-
Only shooting stars break the mold.
4/27/2009 7:44:16 AM

i use System.Net.Mail but the problem i want to add username and password of webmail as


mm.Fields.Add("", "1"); //basic authentication

mm.Fields.Add("", "username"); //set your username here

mm.Fields.Add("", "password");

 and the property fields does not exist in .net.mail and i must send username and password

4/27/2009 7:49:39 PM

Look at my blog post here:

All that glitters is gold-
Only shooting stars break the mold.
4/28/2009 5:10:35 AM

Similar Artilces:
 For some reason, when using, I can't authenticate through my server's mail app (mailEnable).  I can, however, authenticate using system.web.mail, but need the HTML capabilites of  I'm using the methods described on, but with no luck. I even uploaded their sample code.  It works when I use a local from address, but as soon as the address isn't local, it doesn't allow the authentication.  Feel free to test this page (use the local address ekazda@triplestrength....

Problem in sending mail using
I am using C# and ASP.Net2.0 for sending mail. But my problem is it is not being sent. I am not being able to understand it. I am using my gmail account for it. I am using System.Net and System .Net.Mail for sending the same. But i am getting the error ''Failure Sending Mail. Cannot connect to the server" . I have internet connection. Plz help me. It's urgent. I am attaching my code.  MailMessage mailMsg = new MailMessage();MailAddress ma = new MailAddress(; mailMsg.From = ma; mailMsg.To.Add(s);mailMsg.Subject = "Your...

Problem with difference between System.Web.Mail and System.Net.Mail in using attachments
I have a web .Net app which sends emails with attachments.  After the email is sent I clean up aftermyself and delete the attachments from disk.   In upgrading to .Net 2  I changed the email logic from using system.web.mail to  (of course vs is telling me system.web.mail is obsolete).In .Net 1.1,  the files deleted with no problem but in .Net 2 when I attempt to delete  I receive The process cannot access the file ...' because it is being used by another process. If I change the code back to using system.web.mail I can delete the file...

Problem with System.NET.Mail
Some year ago I was develop an application (web and winform) that restore some mails from file in .EML format resend the message in attachment to an smtp server. This program was develop with VS2003 and I was import the System.Web.Mail library. This program work very well! :-)Then I was upgrade the program to the new version VS2005 (for adding Ajax capabilities) but the old library System.Web.Mail is now obsolete!The new one is the System.Net.Mail and the code is changed in few parameter.I was think that it work better then previus version but is wrong!The System.Net.Mail is not WORK!!!The a...

System.Net.Mail problem
I have a strange problem for send an attachment with the new library "System.Net.Mail"In the past I was develop an 1.1 framework application that send an email with and attachment in EML format. The application was work fine with "System.Web.Mail" library. Then I was converted the application in new 2.0 and the new library .net.mail.The code is the same but I can't get the attachment with the new application.I was try to change the contentype mode using:Dim CT1 As New System.Net.Mime.ContentType CT1.MediaType = "message/rfc822"but it not work!The new library not ...

Error:Visual Studio .NET cannot create or open the application. The likeliest problem is that required components are not installed on the local Web server. Run Visual Studio .NET setup and add the We
Hi, I installed the IIS 5.0 after VS.Net 2003 (1.1). after that I did run the aspnet_regiis -i at the visual studio command prompt. I am able to run local web application created on my PC. But when I tried to copy an web application created at shared PC into the wwwroot folder, I get the following error while trying to open the project in VS.Net. I've created the virtual directory for the project and also set the integrated windows authentication under the directory security tab in the IIS. Please help me resolving the problem. Thank You.   Do you have FrontPage Server Ext...

Visual Studio .NET cannot create or open the application. The likeliest problem is that required components are not installed on the local Web server. Run Visual Studio .NET setup and add the Web Deve
I installed Visual Studio .NET 2003 on Windows Vista Home Premuim, but I'm unable to select "Web Development" item from "Server Components" during the installation. I installed all the pre-requisits but I can not see Front Page Server Extention in the programs. I can see also the IIS. Appreciate if any one can guide me with the solution.   Thanks.   FPSE is not included with Vista, it's a separate download.  See for this. JeffPlease: Don't forget to click "Mark as Answer" on the post that helped you. Tha...

System.Net.Mail library problems
Hi everyone, I'm newbie on and I was trying to to an application to send emails with the following code using namespace: Private Sub Envio_Correo(ByVal ruta As String) 'Creando la instancia del mensaje Dim correo As MailMessage = nothing correo.From = New MailAddress("") correo.To.Add("") correo.Subject = "Archivo de Confirmación de matricula" correo.Body = "Se adjunto archivo de confirmación de matricula de su respectiva facultad" correo.IsBodyHtml = False 'correo.Attachments.Add(New Attachment(ruta)) correo.Priority...

Problem with!!!!!!!!
Hi every one . Here is my codeMailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient();SmtpServer.UseDefaultCredentials = false;SmtpServer.Credentials = new System.Net.NetworkCredential("username", "password"); SmtpServer.Port = 587; SmtpServer.Host = ""; SmtpServer.EnableSsl = true;mail.From = new MailAddress("", "TEST", System.Text.Encoding.UTF8); mail.To.Add(; mail.Subject = "Test"; mail.Body = "test";mail.DeliveryNotificationOptions = DeliveryNo...

Problem with and smtp
I have recently switched from sending mail using the system.web.mail namespace, to the new I have gotten it to send mail successfully, but noticed a glitch. I used to get notified (at the “From” address) from the smtp server if the recipient address was an invalid domain or an unknown user (see example below). Now that I have switched to using, I no longer get notified of an invalid domain. I do like the exceptions that get thrown for malformed email addresses (which didn’t happen with system.web.mail), but I’m concerned about the above. I have tested bo...

System.Net.Mail Problem (I think)
Hi, I have a C# application whose sole purpose is to read a couple of tables (MAIL_QUEUE and MAIL_RECIPIENTS) in a database and send out emails. One table contains the message text, and subject line (MAIL_QUEUE). The other table (MAIL_RECIPIENTS) contains the recipient email address and any CC and BCC addresses. Anyway, when this application is deployed on the customers server there seems to be some issue with the number of CC addresses that can be specified in the email address. I can specify 99 CC addresses and the email gets sent out successfully. As soon as I add one more (for...

.net 2 beta 2 - System.Net.Mail
Hi guysI'm using the System.Net.Mail namespace in .net version 2, beta 2, to send out some HTML formatted e-mails.However, for some reason when the e-mail are sent out some of the full stops from the e-mail are removed.For example, part of the e-mail contains this code<img src="" alt="">But this is what the code is like when the e-mail source code is viewed<img src="" alt="">Is this a known bug in beta 2? If so, where can I view a list of known bugs an...

net.mail problem, is it too difficult to handle?
I'm not sure where to add this post as it seems to cover a lot, considering it also has to do with AJAX. No one is able to help solve this issue in other forumz and my question mostly goes unanswered. So I will see if I can get help from the experts in forum, my last stop. I've successfully used net.mail before, but not like this. (note, using Visual Basic) I have a form with a dropdownlist, gridview, and formview (formview2), with a second formview(formview3). The formview2 provides for information with what's selected in the gridview. The formview3 has an asp:ima...

Problem with System.Net.Mail on GoDaddy
Last night after a bit of "fun and games" I managed to get my website upgraded to .NET Framework 2.0 on GoDaddy.  And generally I'm happy.Unfortunately though sending emails using System.Net.Mail doesn't work, so the site can't send out emails when people register etc.  Obviously this has to be addressed.At the moment I have "" with port 80 set on the SMTPClient object (I have to set *something* or there is an error message that says SMTP server is not specified), and the error message I get is "Request for the permission of t...

Web resources about - Mail langauge problem -

Here’s How to Text Flirt With That Cute Foreign Hottie Who Doesn’t Speak Your Langauge
For all those unilingual schmos who’ve thought they were telling some lucky foreigner in ”hey, I like the cut of your jib” in another tongue, ...

Look Out, Rosetta Stone: Memrise Has a New Vision for Learning Langauges
For adults, the early part of learning a new language is all drudgery and repetition. But a new company called Memrise is the next stage of evolution ...

A Shimmering, Tweet-Based Langauge Map of NYC
If you've ever wondered which languages are spoken where in NYC, here's the map for you. This visualization shows exactly which languages are ...

The Power of Sign Langauge
The Power of Sign Langauge - The Huffington Post

Galaxy S6 edge smartwatch concept brings Samsung's curvaceous design langauge to wearables
The Galaxy S6 edge is an unarguably good-looking smartphone, but Samsung's smartwatches aren't quite as enchanting...

Langauge: Automated tool for dialect analysis
Scientists have created an automatic speech analysis tool that pushes the technological envelope for what types of sociolinguistic dialect research ...

Task Force Report's Langauge Hints At Backdoors In Software
After looking over the White House intelligence task force's proposals to reform the way the US government does surveillance, we pointed out ...

The Book of Human Langauges
As I've mentioned before, I'm learning French. I'd like to thank the Horde on this one. Because of&hellip;

How Many Langauges Can You Program In
I was on Skype with a colleague today working on a Risk Management Plan, when the conversation turned to how many programming languages have ...

Oscar Race: Pakistan Picks ‘Daughter’ for Foreign-Langauge Entry
Pakistan’s Academy Selection Committee has chosen writer-producer-director Afia Nathaniel’s “Daughter” (Dukhtar) as the country’s entry for the ...

Resources last updated: 12/6/2015 5:23:42 AM