Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDONTS.NewMail SetLocaleIDs(1257)


Message #1 by "Mrs Catharine Bragg" <cbragg@c...> on Fri, 20 Apr 2001 12:38:12
Hello can anyone help? I am using CDONTS.NewMail to send emails to 

Estonia, Latvia and Lithuania. I am using the method SetLocaleIDs(1257) to 

specify the locale of the client. I can send this email fine within the 

network where I work, to hotmail, yahoo and other email accounts not in 

the Baltic region. However as soon as I send it to the intended recipients 

in the Baltics the characters become corruted.



For example in the subject line:



Subject: =?unknown-8bit?q?Tech=20Data=20Eesti=20-=20P=E4eva=20uudised=2011?

==?unknown-8bit?q?=2F4=2F2001?



In the body:



For example in e-mail we can see this 

**************

YPATINGAS TECH DATA  13 SAVAITĖS PASIŪLYMAS

Paskubėkite u?sakyti ?io "europinio deficito"

************



But it should by like this

************

YPATINGAS TECH DATA  13 SAVAITĖS PASIŪLYMAS

Paskubėkite u?sakyti ?io "europinio deficito"

************



Does anyone have any ideas?



Cath Bragg



Message #2 by Jonothon Ortiz <jon@x...> on Fri, 20 Apr 2001 20:09:36 -0400
Could it be an issue with the fonts they are using on their computer?



At 12:38 PM 4/20/01 +0000, you wrote:

>Hello can anyone help? I am using CDONTS.NewMail to send emails to

>Estonia, Latvia and Lithuania. I am using the method SetLocaleIDs(1257) to

>specify the locale of the client. I can send this email fine within the

>network where I work, to hotmail, yahoo and other email accounts not in

>the Baltic region. However as soon as I send it to the intended recipients

>in the Baltics the characters become corruted.

>

>For example in the subject line:

>

>Subject: =3D?unknown-8bit?q?Tech=3D20Data=3D20Eesti=3D20-=3D20P=3DE4eva=3D2

0uudised=3D2011?

>=3D=3D?unknown-8bit?q?=3D2F4=3D2F2001?=3D

>

>In the body:

>

>For example in e-mail we can see this

>**************

>YPATINGAS TECH DATA  13 SAVAIT=CBS PASI=DBLYMAS

>Paskub=EBkite u?sakyti ?io "europinio deficito"

>************

>

>But it should by like this

>************

>YPATINGAS TECH DATA  13 SAVAIT=CBS PASI=DBLYMAS

>Paskub=EBkite u?sakyti =9Aio "europinio deficito"

>************

>

>Does anyone have any ideas?

>

>Cath Bragg



Message #3 by "Bragg, Catherine" <CBragg@c...> on Mon, 23 Apr 2001 09:04:04 +0100
Thanks for the idea, we will investigate this.



Cath



-----Original Message-----

From: Jonothon Ortiz [mailto:jon@x...]

Sent: 21 April 2001 01:10

To: ASP CDO

Subject: [asp_cdo] Re: CDONTS.NewMail SetLocaleIDs(1257)





Could it be an issue with the fonts they are using on their computer?



At 12:38 PM 4/20/01 +0000, you wrote:

>Hello can anyone help? I am using CDONTS.NewMail to send emails to

>Estonia, Latvia and Lithuania. I am using the method 

SetLocaleIDs(1257) to

>specify the locale of the client. I can send this email fine within 

the

>network where I work, to hotmail, yahoo and other email accounts not 

in

>the Baltic region. However as soon as I send it to the intended 

recipients

>in the Baltics the characters become corruted.

>

>For example in the subject line:

>

>Subject: 

=3D?unknown-8bit?q?Tech=3D20Data=3D20Eesti=3D20-=3D20P=3DE4eva=3D20uudis

ed=3D2011?

>=3D=3D?unknown-8bit?q?=3D2F4=3D2F2001?=3D

>

>In the body:

>

>For example in e-mail we can see this

>**************

>YPATINGAS TECH DATA  13 SAVAIT=CBS PASI=DBLYMAS

>Paskub=EBkite u?sakyti ?io "europinio deficito"

>************

>

>But it should by like this

>************

>YPATINGAS TECH DATA  13 SAVAIT=CBS PASI=DBLYMAS

>Paskub=EBkite u?sakyti sio "europinio deficito"

>************

>

>Does anyone have any ideas?

>

>Cath Bragg



Message #4 by "Mrs Catharine Bragg" <cbragg@c...> on Wed, 25 Apr 2001 11:43:10
Hi just to let anyone know who might come across the same problem. The 

following code works. I am sending the mail in HTML format, specifing the 

character set in the meta tag and the localeID as a method of the object.



Dim myMail 

Set myMail = CreateObject("CDONTS.NewMail") 

 

HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & NL 

HTML = HTML & "<html>" 

HTML = HTML & "<head>" 

HTML = HTML & "<meta http-equiv=""Content-Type""" 

HTML = HTML & "HTML = HTML & ""content=""text/html; charset=windows-

1257"">""" 

HTML = HTML & "<title>Sample NewMail</title>" 

HTML = HTML & "</head>" 

HTML = HTML & "<body>" 

HTML = HTML & "This is a sample message being sent using HTML. 

<BR></body>" 

HTML = HTML & "</html>" 

 

myMail.From = "Example@m..." 

myMail.To = "Someone@m..." 

myMail.Subject = "Sample Message" 

myMail.BodyFormat = 0 

myMail.MailFormat = 0

myMail.SetLocaleIDs(1257)  

myMail.Body = HTML 

myMail.Send 

Set myMail = Nothing



Cath Bragg




  Return to Index