ASP classic CDO Email messaging use UTF-8 in textbody

后端 未结 2 677
粉色の甜心
粉色の甜心 2020-12-20 20:30

How can i send email by using UTF-8 charset. Kindly note that I need to use it in textbody and not in htmlbody.

Everythings working fine if I uses it in htmlbody bu

相关标签:
2条回答
  • 2020-12-20 21:19

    use

    bjCDOMailer.TextBodyPart.Charset = "utf-8" 
    

    for charcter encoding.

    objCDOMailer.BodyPart.Charset = "utf-8" 
    objCDOMailer.HTMLBodyPart.Charset = "utf-8"
    

    Above's are not working .

    0 讨论(0)
  • 2020-12-20 21:35

    Try setting the encoding individually for TextBody and HTMLBody

    objCDOMailer.BodyPart.Charset = "utf-8" 
    bjCDOMailer.TextBodyPart.Charset = "utf-8" 
    objCDOMailer.HTMLBodyPart.Charset = "utf-8"
    
    0 讨论(0)
提交回复
热议问题