[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How do I insert french characters into an email using ASP and CDOSYS?

Posted on 2009-04-06
3
Medium Priority
?
874 Views
Last Modified: 2012-06-27
I am trying to send an email using ASP and CDOSYS that uses some french characters. The email is sending correctly but the french characters are not display properly. I have tried the UTF-8 character set but not sure whether it has been setup correctly or if there is another issue.
Set myMail = CreateObject("CDO.Message")
	myMail.Subject = "The Subject Line"
	myMail.From = "sender@address.com"
	myMail.To = "recipient@address.com"
	myMail.BodyPart.Charset = "utf-8"
	myMail.HTMLBody = "<html><head></head><body>" & MyBody & "</body></html>"
	myMail.HTMLBodyPart.Charset = "utf-8"
	myMail.Configuration.Fields.Item _
	("http://schemas.microsoft.com/cdo/configuration/sendusing")=1
	'Name or IP of remote SMTP server
	myMail.Configuration.Fields.Item _
	("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
	="localhost"
	'Server port
	myMail.Configuration.Fields.Item _
	("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
	=25 
	myMail.Configuration.Fields.Update
	myMail.Send
	set myMail = nothing

Open in new window

0
Comment
Question by:markm5i
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24083460
Maybe?
I just found this, and not sure if it will help or not.

 
        myMail.BodyPart.charset="unicode-1-1-utf-8"
 
        myMail.Subject=mail_subject
        myMail.From =mail_from
        myMail.To=mail_to
        myMail.TextBody =CreateMailHtml(mail_body)
        myMail.HTMLBody=CreateMailHtml(mail_body)
        myMail.HTMLBodyPart.CharSet="utf-8"
        myMail.Send

Open in new window

0
 

Accepted Solution

by:
markm5i earned 0 total points
ID: 24133120
Still no solution - ended up using a replace function to insert the html character codes.
0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24134080
Sometimes there is no solutions, or the ones that have the solutions are not on EE...
But the Replace function is sometimes the best thing to use when you have no other way
Of doing something....

Good Luck
Carrzkiss
0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

650 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