multilingual smtp component

G

Guoqi Zheng

Dear Sir,

I wrote an Smtp myself to send email. Everything works fine when I am
sending English email. However, when I send an email with special characters
in it, there is always a problem. I used UTF8 encoding, below the sending
command.

Can someone tell me what did I do wrong? How can I write a smtp component
which can be able to handle special characters?

Private Sub SendData(ByVal strMsg As String)

Dim strByte As [Byte]()

strByte = System.Text.Encoding.UTF8.GetBytes(strMsg.ToCharArray())

qqNetworkStream.Write(strByte, 0, strByte.Length)

End Sub


--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top