Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDO for W2K and Unicode mail


Message #1 by "Alex Thissen" <athissen@k...> on Thu, 31 Jan 2002 11:22:44
Hi,



I'm trying to send an email with CDO for Windows 2000. No problems until I 

want to use Unicode characters (actually just Hungarian and Tsech 

characters, utf-8 style). These characters get filtered down to normal 

characters. I would appreciate some help. Included below is the source 

code I'm trying to use.

Thanks, Alex

<%

	Dim objMsg

	Dim objBp



	Set objMsg = Server.CreateObject("CDO.Message")

	objMsg.To = "athissen@k..."

	objMsg.From = "athissen@z..."

	objMsg.Subject = "Test mail"

        'Line below should contain u with o above it in word 'muzete'

	iMsg.TextBody = "otázky mů?ete odpovědět klepnutím"

		

	Set objBP = objMsg.TextBodyPart

	objBp.ContentMediaType = "text/html; charset=""utf-8"""

	objBp.Charset = "utf-8" 'cdoUTF8

	'Also tried line below

	'objMsg.TextBody = "otázky mů?ete odpovědět klepnutím"

	objMsg.Send

%>


  Return to Index