Can't send UTF 8 emails. Keep getting question marks and other chars ... help please

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139