utf-8 support aspemail.

Posted on 2009-04-28
Last Modified: 2012-05-06
I have asp application, it uses aspemail soft to send email on UTf-8 fomat.
I am testing receiving email on Outlook Express. when I try to send chinese or korean email  then some characters in Subject line becomes "???" sign.
But the body of the text is fine.

I followed the following code according to the, mannual. but still doesnot work.
 Mail.Subject = Mail.EncodeHeader( Request("Subject"), "utf-8")
 Mail.CharSet = "UTF-8"
 Mail.ContentTransferEncoding = "Quoted-Printable"

any help would be very much appreciated

Question by:saloj
    LVL 9

    Accepted Solution

    Are you setting the mail subject again after executing

    Mail.Subject = Mail.EncodeHeader( Request("Subject"), "utf-8")

    Cause what you're really supposed to do is use

    dim mySubject = "Your subject text"
    Mail.Subject = Mail.EncodeHeader( Request(mySubject), "utf-8")

    If that doesn't help try to explicitly setingt Session.CodePage=65001
    LVL 2

    Author Comment

    i tried it, but still doesnt work. how can i write "Session.CodePage=65001" in visual basic 6.0?

    dim mySubject = "Your subject text"
    Mail.Subject = Mail.EncodeHeader( Request(mySubject), "utf-8")

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
    This demonstration started out as a follow up to some recently posted questions on the subject of logging in: and…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now