I found this code for COD by UFT8 charset

Discussion in 'Classic ASP' started by dodo, Feb 11, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. i foudn this letter about sending formmal using Unicode UTF8 format





    <<<<<





    This was a P A I N to get working. Maybe someone else here is sending email and could use it.

    A UNICODE Send Mail using CDOSYS with ReadReceipt and Importance...

    Sub SendMail (sFromAddress, sToAddress, sCcAddress, sBccAddress, sSubject, sBody, boolReadReceipt, intImportance )
    ' on error resume next
    Const cdoDispositionNotificationTo = "urn:schemas:mailheader:disposition-notification-to"
    Const cdoReturnReceiptTo = "urn:schemas:mailheader:return-receipt-to"
    dim cdoMessage, cdoConfiguration

    Set cdoConfiguration = Server.CreateObject ("CDO.Configuration")
    ' Outgoing SMTP server
    With cdoConfiguration
    .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
    .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    .Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    .Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
    .Fields.Update
    End With


    Set cdoMessage = CreateObject("CDO.Message")
    With cdoMessage
    ' Update the CDOSYS Configuration
    SET .Configuration = cdoConfiguration
    .BodyPart.charset = "unicode-1-1-utf-8"

    IF boolReadReceipt Then
    .Fields(cdoDispositionNotificationTo) = sFromAddress
    .Fields(cdoReturnReceiptTo) = sFromAddress
    End If

    ' Set the Importance: 0:Low, 1:Normal, 2:High
    .Fields("urn:schemas:httpmail:importance").Value = intImportance
    .Fields.Update
    .From = sFromAddress
    .ReplyTo = sFromAddress
    .To = sToAddress
    .Cc = sCcAddress
    .Bcc = sBccAddress
    .Subject = sSubject
    .Textbody = sBody
    .Send
    End With

    Set cdoMessage = Nothing
    Set cdoConfiguration = Nothing
    End Sub>>>>>>I hope it is usfulhttp://www.sqlteam.com/forums/topic.asp?TOPIC_ID=45670
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page