funasset
asked on
£ being prefixed with  in email messages sent using CDO
Hello,
I recently did a Windows 2003 Server update and since then, plain text emails sent from my website using CDOSYS prefix £ signs with Â, e.g. £
Furthermore, prior to the Windows update, plain text emails from my website were sent using a fixed pitch font (Courier or Courier New maybe). However, they are now sent using a variable font causing email content to be misaligned.
So, in summary...
1. I want to remove the £ and only display £
2. I want to send the email using a fixed pitch font.
Here is the ASP code I currently use to send the email...
Set myMail=CreateObject("CDO.M essage")
myMail.From="xyz.abc.com"
myMail.To=varEmail
myMail.Subject="blah de blah"
myMail.TextBody=msgBody
myMail.Send
set myMail=nothing
Please note, I have tried adding the following line but it made no difference (i.e. £ remained in the emails)...
myMail.bodypart.charset = "utf-8"
I hope someone can help!
Regards,
Mark.
I recently did a Windows 2003 Server update and since then, plain text emails sent from my website using CDOSYS prefix £ signs with Â, e.g. £
Furthermore, prior to the Windows update, plain text emails from my website were sent using a fixed pitch font (Courier or Courier New maybe). However, they are now sent using a variable font causing email content to be misaligned.
So, in summary...
1. I want to remove the £ and only display £
2. I want to send the email using a fixed pitch font.
Here is the ASP code I currently use to send the email...
Set myMail=CreateObject("CDO.M
myMail.From="xyz.abc.com"
myMail.To=varEmail
myMail.Subject="blah de blah"
myMail.TextBody=msgBody
myMail.Send
set myMail=nothing
Please note, I have tried adding the following line but it made no difference (i.e. £ remained in the emails)...
myMail.bodypart.charset = "utf-8"
I hope someone can help!
Regards,
Mark.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I set the codepage to 65001 and all is now well.
Thank you for your swift response.
Thank you for your swift response.
It would help to see the contents of msgBody.