|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Sending emails with CDONTs in Russian
I'm sending Russian text in an email generated from the website which
displays in the email as ?????????? The website is set to codepage 65001 and the charset to utf-8. Please advise. Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY ** ---------------------------------------------------------- http://www.usenet.com "Roger Withnell" <rogerREM***@THISupperbridge.co.uk> wrote in message Roger your question is a little abigous.news:1142601471_9609@sp6iad.superfeed.net... > I'm sending Russian text in an email generated from the website which > displays in the email as ?????????? > > The website is set to codepage 65001 and the charset to utf-8. > > Please advise. > > The web site is displaying the email or sending the email or both? The email looks garbled when you view it in an email client? What are you using to generate the email CDOSYS? The session codepage only affects how response.write encodes. Charset is simply a response header. Neither impacts the creation of an email. Anthony.
Show quote
"Anthony Jones" <A**@yadayadayada.com> wrote in message ASP page sends an email using CDONTS:news:%23lnZNIdSGHA.4608@tk2msftngp13.phx.gbl... > > "Roger Withnell" <rogerREM***@THISupperbridge.co.uk> wrote in message > news:1142601471_9609@sp6iad.superfeed.net... >> I'm sending Russian text in an email generated from the website which >> displays in the email as ?????????? >> >> The website is set to codepage 65001 and the charset to utf-8. >> >> Please advise. >> >> > > Roger your question is a little abigous. > > The web site is displaying the email or sending the email or both? > > The email looks garbled when you view it in an email client? > > What are you using to generate the email CDOSYS? > > The session codepage only affects how response.write encodes. > Charset is simply a response header. > > Neither impacts the creation of an email. > > Anthony. > Set objMail = Server.Createobject("CDONTS.NewMail") objMail.From = "Email" objMail.To = vEmail objMail.Subject = "Subject" objMail.BodyFormat = 0 objMail.MailFormat = 0 objMail.Body = htmlText objMail.Send Set objMail = Nothing htmlText is the page in html as a complete html page <html> to </html> It includes <meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8""> in the header. This works fine (and has done for ages in other applications) in English. But the Russian characters appear as ?????????? Perhaps I should be using CDOSYS? If so, can you point me to an appropriate tutorial? Thanking you in anticipation. Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY ** ---------------------------------------------------------- http://www.usenet.com
Show quote
"Roger Withnell" <rogerREM***@THISupperbridge.co.uk> wrote in message With CDOSYS this can acheive what you are after:-news:1142626044_10085@sp6iad.superfeed.net... > > "Anthony Jones" <A**@yadayadayada.com> wrote in message > news:%23lnZNIdSGHA.4608@tk2msftngp13.phx.gbl... > > > > "Roger Withnell" <rogerREM***@THISupperbridge.co.uk> wrote in message > > news:1142601471_9609@sp6iad.superfeed.net... > >> I'm sending Russian text in an email generated from the website which > >> displays in the email as ?????????? > >> > >> The website is set to codepage 65001 and the charset to utf-8. > >> > >> Please advise. > >> > >> > > > > Roger your question is a little abigous. > > > > The web site is displaying the email or sending the email or both? > > > > The email looks garbled when you view it in an email client? > > > > What are you using to generate the email CDOSYS? > > > > The session codepage only affects how response.write encodes. > > Charset is simply a response header. > > > > Neither impacts the creation of an email. > > > > Anthony. > > > ASP page sends an email using CDONTS: > > Set objMail = Server.Createobject("CDONTS.NewMail") > objMail.From = "Email" > objMail.To = vEmail > objMail.Subject = "Subject" > objMail.BodyFormat = 0 > objMail.MailFormat = 0 > objMail.Body = htmlText > objMail.Send > Set objMail = Nothing > > htmlText is the page in html as a complete html page <html> to </html> It > includes > <meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8""> > in the header. > > This works fine (and has done for ages in other applications) in English. > But the Russian characters appear as ?????????? > > Perhaps I should be using CDOSYS? If so, can you point me to an appropriate > tutorial? > > Thanking you in anticipation. > oMsg.HTMLBody = "<html><body>HTML content with £ in it</body></html>" oMsg.HTMLBodyPart.CharSet = "utf-8" this should give you something to go on:- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_clb_sending_smtp_mail_by_port_25_using_cdosys_vb.asp Anthony more on cdosys
http://www.powerasp.com/content/new/sending_email_cdosys.asp Show quote "Anthony Jones" <A**@yadayadayada.com> wrote in message news:Obz5ULhSGHA.524@TK2MSFTNGP10.phx.gbl... > > "Roger Withnell" <rogerREM***@THISupperbridge.co.uk> wrote in message > news:1142626044_10085@sp6iad.superfeed.net... >> >> "Anthony Jones" <A**@yadayadayada.com> wrote in message >> news:%23lnZNIdSGHA.4608@tk2msftngp13.phx.gbl... >> > >> > "Roger Withnell" <rogerREM***@THISupperbridge.co.uk> wrote in message >> > news:1142601471_9609@sp6iad.superfeed.net... >> >> I'm sending Russian text in an email generated from the website which >> >> displays in the email as ?????????? >> >> >> >> The website is set to codepage 65001 and the charset to utf-8. >> >> >> >> Please advise. >> >> >> >> >> > >> > Roger your question is a little abigous. >> > >> > The web site is displaying the email or sending the email or both? >> > >> > The email looks garbled when you view it in an email client? >> > >> > What are you using to generate the email CDOSYS? >> > >> > The session codepage only affects how response.write encodes. >> > Charset is simply a response header. >> > >> > Neither impacts the creation of an email. >> > >> > Anthony. >> > >> ASP page sends an email using CDONTS: >> >> Set objMail = Server.Createobject("CDONTS.NewMail") >> objMail.From = "Email" >> objMail.To = vEmail >> objMail.Subject = "Subject" >> objMail.BodyFormat = 0 >> objMail.MailFormat = 0 >> objMail.Body = htmlText >> objMail.Send >> Set objMail = Nothing >> >> htmlText is the page in html as a complete html page <html> to </html> >> It >> includes >> <meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8""> >> in the header. >> >> This works fine (and has done for ages in other applications) in English. >> But the Russian characters appear as ?????????? >> >> Perhaps I should be using CDOSYS? If so, can you point me to an > appropriate >> tutorial? >> >> Thanking you in anticipation. >> > > With CDOSYS this can acheive what you are after:- > > oMsg.HTMLBody = "<html><body>HTML content with £ in it</body></html>" > oMsg.HTMLBodyPart.CharSet = "utf-8" > > this should give you something to go on:- > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_clb_sending_smtp_mail_by_port_25_using_cdosys_vb.asp > > Anthony > > |
|||||||||||||||||||||||