No croatian characters in email body using CDO

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scudm2m
    New Member
    • Dec 2009
    • 2

    No croatian characters in email body using CDO

    Hi to all...
    I'm new here, so don't be mad if there is already a solution for my problem.
    Tnx ;))...

    So, here it comes.
    I administrate a portal where end user can register an upcoming event, and that registration form is sent to my mail (so I can authorize it).

    I'm using a CDO.Message method and there is no problem with that...
    The user fills out the form, sends it, and mail arrives in my mailbox.

    The problem is, as it is a croatian portal, there are no croatian characters in the BODY of the email.
    The thing I was surprised with is that there ARE croatian characters in the SUBJECT of the email (using the same field in the subject and later in the body), but later in the body no CRO characters...

    I tried to change charsets from windows-1250, ISO latin 2 to UTF-8 but am getting the same results...CRO chars in subject, but none in the body...the only change is appearance of those substitutional characters...
    Also i put an accept-charset option directly to the form, changing charsets, but no change.

    Please help!!!

    p.s. here is the code:

    <%@ Language="VBscr ipt" %>
    <% Option Explicit %>

    <%
    dim sch, cdoConfig, cdoMessage

    sch = "http://schemas.microso ft.com/cdo/configuration/"

    Set cdoConfig = CreateObject("C DO.Configuratio n")

    With cdoConfig.Field s
    .Item(sch & "sendusing" ) = 2 ' cdoSendUsingPor t
    .Item(sch & "smtpserver ") = "mail.xxx.h r"
    .update
    End With

    Set cdoMessage = CreateObject("C DO.Message")

    With cdoMessage
    Set .Configuration = cdoConfig
    .From = "info@xxx.h r"
    .To = "info@xxx.h r"
    .Subject = "CakovecOnline. com - prijavljeno zbivanje - " & Request.Form("n aziv")
    .HTMLBody = "<b>Poslano :</b> " & FormatDateTime( now, 0) & "<br><br><b>Naz iv:</b> " & Request.Form("n aziv") & "<br><b>Dat um:</b> " & Request.Form("d atum") & "<br><b>Mjesto: </b> " & Request.Form("m jesto") & "<br><b>Vrijeme :</b> " & Request.Form("v rijeme") & "<br><b>Viš e o programu:</b> " & Request.Form("v ise-o-programu") & "<br><br><b>Org anizator:</b> " & Request.Form("o rganizator") & "<br><b>Web stranice:</b> " & Request.Form("w eb-stranice") & "<br><b>Pošilja telj:</b> " & Request.Form("p osiljatelj")
    .Send
    End With

    Set cdoMessage = Nothing
    Set cdoConfig = Nothing

    response.redire ct ("zbivanje-poslano.asp")
    %>
  • CroCrew
    Recognized Expert Contributor
    • Jan 2008
    • 564

    #2
    Bottome line; do you want the Croatian characters or not in the email?

    Bok,
    CroCrew~

    Comment

    • scudm2m
      New Member
      • Dec 2009
      • 2

      #3
      yes, I want Croatian characters in the mail...
      but I found the problem...as I was testing this script on iMac, it was the problem in it's own Mail application...
      later i tested the same on a Windows platform, and there were Croatian characters in the body of the mail, so i think there is a bug on Mac with Croatian layout...

      tnx anyway ;)

      Comment

      • CroCrew
        Recognized Expert Contributor
        • Jan 2008
        • 564

        #4
        NP, all the best with your website.

        CroCrew~

        Comment

        Working...