Visualizzazione dei risultati da 1 a 7 su 7
  1. #1

    invio mail in giapponese

    Ciao a tutti
    qualcuno sa dirmi come faccio ad inviare mail dal sito con i caratteri giapponesi

    questo è il codice che sto usando ma mi invia caratteri assurdi. Eppure con i meta visualizzo correttamente il sito in giapponese

    codice:
    body = "<html><head>"
    if language="_jp" then
    body = body & "<meta http-equiv='Content-Language' content='jp'>"
    body = body & "<meta http-equiv='content-type' content='text/html;charset=x-sjis'>"
    
    else
    body = body & "<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>"
    end if
    body = body & "</head><body '>"
    body = body & "Nome: " &nome&  "
    "
    body = body & "Cognome: " &cognome&  "
    "
    body = body & "Data nascita: " &datanascita&  "
    "
    body = body & "Sesso: " & sesso&  "
    "
    body = body & "Telefono: " &telefono& "
    "
    body = body & "Indirizzo: " &indirizzo&  "
    "
    body = body & "Citta: " &citta&  "
    "
    body = body & "Provincia: " &provincia&  "
    "
    body = body & "Cap: " &cap&  "
    "
    body = body & "Nazione: " &nazione&  "
    "
    body = body & "Fax: " &fax&  "
    "
    body = body & "Email: " &email&  "
    "
    body = body & "Note: " &note&  "
    "
    body = body & "</body></html>"
    AIUTO!!!!!!!!!!!

  2. #2

  3. #3
    se ti puoi far installare il componente su server è interessante sto sito:

    http://www.example-code.com/asp/sendJpEmail.asp

  4. #4
    grazie per la risposta ma il server è aruba e sicuramente non posso installare nessun componente.
    controlando l'indirizzo che mi hai mandato ho visto che usa

    codice:
    email.Charset
    sai se si puo settare qualcosa di simile in cdosys

  5. #5
    boh nn credo,

    prova a girare qui:
    Reference CDOSYS di Microsoft

  6. #6
    Ho trovato questo ma è per VB

    codice:
    Dim iMsg As New CDO.Message
    Dim iBp As CDO.IBodyPart
    Dim Stm As ADODB.Stream
    Dim Stm2 As New ADODB.Stream
    With iMsg
      .To      = "example@example.com"
      .From    = "example@example.com"
      .Subject = "hello there"
      .TextBody = "here is my xml file"
    End With
    
    ' Open the XML file using the 2nd, temporary Stream object
    With Stm2
      .Open
      .Type = adTypeText
      .Charset = "UTF-8" 
      .LoadFromFile "c:\test.xml"
    End With
    
    ' Now add the attachment to the message
    Set iBp = iMsg.Attachments.Add
    With iBp
      .ContentMediaType = "text/xml; charset=""utf-8"""
      .Charset = cdoUTF8
      Set Stm = .GetDecodedContentStream
      ' Copy the XML file contents to the content stream
    End With
    
    Stm2.CopyTo Stm
    Stm.Flush
    ' Save the file to check our work
    iMsg.GetStream.SaveToFile "c:\test.eml", adSaveCreateOverWrite
    però non ho idea di come inserirlo nel mio

  7. #7
    provato e riprovato ma non funzia.


    ma come fanno in giappone ad inviare le mail dal sito con cdosys.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.