Professional Web Applications Themes

CDONTS.NewMail and utf8 - ASP Components

Hi, Does anyone know how to send arabic mails using CDONTS.NewMail? I tried inserting "<meta http-equiv=Content-Type content="text/html; cht=UTF-8", in the message body and also BodyFormat=0, but it didn't work. Can any one help? thanks a lot...

  1. #1

    Default CDONTS.NewMail and utf8

    Hi,
    Does anyone know how to send arabic mails using CDONTS.NewMail?
    I tried inserting "<meta http-equiv=Content-Type content="text/html;
    cht=UTF-8", in the message body and also BodyFormat=0, but it
    didn't work.
    Can any one help?
    thanks a lot
    infouad Guest

  2. #2

    Default Re: CDONTS.NewMail and utf8

    "infouad" <i_bicharahotmail.com> wrote in message
    news:d3d7f4e5.0404270743.6d22c8c2posting.google.c om...
    > Hi,
    > Does anyone know how to send arabic mails using CDONTS.NewMail?
    > I tried inserting "<meta http-equiv=Content-Type content="text/html;
    > cht=UTF-8", in the message body and also BodyFormat=0, but it
    > didn't work.
    Please use CDO...

    > Can any one help?
    > thanks a lot
    Egbert Nierop \(MVP for IIS\) Guest

  3. #3

    Default Re: CDONTS.NewMail and utf8

    From the MSDN

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/_cdosys_specifying_the_header_fields_character_set .aspA[/url]
    message formatted in MIME can use one character set for the text or HTML
    body parts and another character set for the message header fields. When
    that is the case, the character set for the header fields must be explicitly
    set so that the fields are properly encoded using the mechanism defined by
    Request For Comments (RFC) 1522.

    The following example demonstrates how to explicitly set the character set
    for the message header fields to iso-2022-jp, whereas the explicit character
    set for an included HTML body part is iso-8859-9.

    [Visual Basic]
    ' Reference to Microsoft ActiveX Data Objects 2.5 Library
    ' Reference to Microsoft CDO for Windows 2000 Library
    Dim iMsg As New CDO.Message
    With iMsg
    .From = """[Unicode characters]"" <exampleexample.com>"
    .To = """[Unicode characters]"" <exampleexample.com>"
    .Subject = "[Unicode characters]"

    ' The character set is iso-8859-1 for the HTML in included web page
    ' and for the text/plain alternative message text
    .CreateMHTMLBody "http://server.example.com"

    ' The next line sets the character set for the message header fields
    ' to utf-8.
    .BodyPart.Cht = "utf-8"
    .Send
    End With
    --
    compatible web farm Session replacement for Asp and Asp.Net
    [url]http://www.nieropwebconsult.nl/asp_session_manager.htm[/url]

    "infouad" <i_bicharahotmail.com> wrote in message
    news:d3d7f4e5.0404270743.6d22c8c2posting.google.c om...
    > Hi,
    > Does anyone know how to send arabic mails using CDONTS.NewMail?
    > I tried inserting "<meta http-equiv=Content-Type content="text/html;
    > cht=UTF-8", in the message body and also BodyFormat=0, but it
    > didn't work.
    > Can any one help?
    > thanks a lot
    Egbert Nierop \(MVP for IIS\) Guest

Similar Threads

  1. CDONTS.NewMail and SMTP on different servers?
    By Kelly in forum ASP Components
    Replies: 1
    Last Post: March 1st, 10:03 PM
  2. CDONTS NewMail
    By Fatcoin in forum ASP
    Replies: 2
    Last Post: September 23rd, 06:22 AM
  3. using a comma in the from using CDONTS.NewMail
    By Tom Petersen in forum ASP
    Replies: 2
    Last Post: September 7th, 02:25 AM
  4. CDONTS.NewMail - not working...!
    By Steve in forum ASP
    Replies: 4
    Last Post: August 22nd, 02:07 PM
  5. Replies: 0
    Last Post: July 8th, 04:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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