开发者

How to fix remove whitespace from email headers in classic ASP?

开发者 https://www.devze.com 2022-12-20 05:31 出处:网络
I have a email function which sends email. The thing is done in classic ASP/VBScript and uses Set objMail = Server.CreateObject(\"JMail.SMTPMail\"开发者_如何学运维)

I have a email function which sends email. The thing is done in classic ASP/VBScript and uses

Set objMail = Server.CreateObject("JMail.SMTPMail"开发者_如何学运维)

JMail. How can I remove extra whitespace (= bad MIME encoding) in the header?


I fixed it. The solution was simple when I figured out what to do.

 objMail.MimeVersion = "1.0"
        objMail.SimpleLayout = true
        objMail.ContentTransferEncoding = "base64"
        objMail.Charset = "UTF-8"
0

精彩评论

暂无评论...
验证码 换一张
取 消