Ask a Question related to ASP.NET General, Design and Development.
-
Bülent Keskin #1
Re: Can't send UTF 8 emails. Keep getting question marks and other chars ... help please
Compose your mail message as following:
-----------------------------------------
<HEAD>
<meta http-equiv="Content-Type" content="text/html" charset="windows-1255"
/>
<meta http-equiv="Content-Language" content="he" />
</HEAD>
<body>
Your message goes here
</body>
And then use System.Web.MailMessage as:
---------------------------------------------
MailMessage message = new MailMessage();
message.Body = "the above HTML message";
message.BodyFormat = MailFormat.HTML;
message.To = "to@yada.com";
message.From = "from@yada.com";
SmtpMail.Send(message);
If you dont like HTML messages, use :
---------------------------------------
message.BodyEncoding to change it to your language's char set..
"Guy Soffer" <guy.soffer@orange.co.il> wrote in message
news:1bcf2619.0308070044.580ca699@posting.google.c om...> I tried Hebrew ...
> I'm sending the email using System.Web.Mail ....
>
> I tried everything ...
> On the web form itself I put:
> <HEAD>
> <meta http-equiv="Content-Type" content="text/html"
> charset="windows-1255" />
> <meta http-equiv="Content-Language" content="he" />
> </HEAD>
>
> and in the beginning:
> <%@ Page Language="vb" Culture="he-IL" ResponseEncoding="windows-1255"
> %>
>
> and tried everything: TEXT Format or HTML Format. Unicode encoding,
> UT7, UTF8, ASCII but I can't see hebrew on the mail itself. When
> trying to do that on my own computer it worked well. But on my hosting
> server I can't get the hebrew. I tried also edit the web.config:
> <globalization
> fileEncoding="utf-8"
> requestEncoding="windows-1255"
> responseEncoding="windows-1255"
> culture="he-IL"
> uiCulture="he-IL"
> />
>
> The page gets the Hebrew data using Web Forms. When trying to use the
> page through my LOCALHOST it works GREAT! When trying to use the page
> through my hosting company, I get the mail but in gibrish/question
> marks.
>
> Whenever I had problem showing Hebrew on a page before, I used the
> <META> tag I posted earlier with the "windows-1255" code and on
> classic ASP, add <SCRIPT "VBScript" code="windows-1255" or something
> like that.
>
> For the problematic email page, I tried to use TEXT or HTML body mode
> with no help. Tried to change the BodyEncoding to
> UTF-8/Unicode/Windows-1255 and it didn't help.
>
> When I tested a demo of an ASP.NET email component (that supports UTF8
> as the developer wrote) that someone sells on the web, I entered
> Hebrew on the Web Form and sent email to me. I got the Hebrew
> perfectly.
>
> Does something is missing on my hosting company? Do I miss something?
> I'm so desperate about this situation cause my application is based on
> Hebrew emails.
>
> Your solutions will be really respected .....
Bülent Keskin Guest
-
ColdFusion to send duplicate emails to sendmail
A coldfusion script that sends ONE email to ONE person. CF first put the email in the spool folder then submit to sendmail. The spool only has one... -
Help with Formatting Forms that send emails
I designed a form page with Dreamweaver and set the action to send me an email of the content of the form. The only problem is that the email... -
Can't send emails to internal mailbox
Hi guys, Before our company went through an upgrade, we had Exchange 5.5 and Win2k Server installed on 2 separate servers. At that time, I was... -
How do you send html emails
I have a html file that I need to email to our sales reps. I would like the html to to embedded in the email's body, like newsletter emails we all... -
how to send html emails
I need to find out how to send html emails. Does anyone have any useful information on how to do this? I have looked it up on the net a bit but I'm... -
Guy Soffer #2
Re: Can't send UTF 8 emails. Keep getting question marks and other chars ... help please
It didn't help. When trying my localhost it went ok but when I
uploaded it to my server i got question mark!
Guy Soffer Guest



Reply With Quote

