使用CDO在电子邮件正文中随机感叹号 [英] Random exclamation mark in email body using CDO

查看:454
本文介绍了使用CDO在电子邮件正文中随机感叹号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用CDO对象在传统的ASP获得随机感叹号(!)标记的电子邮件正文。

We are getting random exclamation (!) mark in email body using CDO object in Classic ASP.

我们没有得到与Outlook这个感叹号。问题只与Lotus Notes客户端发生。我们使用IIS SMTP服务器发送电子邮件。

We are not getting this exclamation mark with outlook. Problem only occur with Lotus Notes client. We use IIS SMTP server to send email.

修改

Set myMail= Server.CreateObject("CDO.Message")
myMail.Subject="Business and Company News on your Mobile Device"
myMail.From="no-reply@test.com"
myMail.To="some@email.com"
htmlbody = htmlbody (coming runtime)
myMail.BodyPart.ContentTransferEncoding = "quoted-printable"
myMail.HTMLBody = htmlbody
myMail.Send

我觉得客户不使用SMTP。但他们使用LotusNotes肯定的。

I think client is not using SMTP. But they are using LotusNotes for sure.

推荐答案

唯一的区别我和我的code看到的是

Only difference I see with my code is

 .HTMLBody= psBody
 .HTMLBodyPart.ContentTransferEncoding = "quoted-printable"

所以 HTMLBodyPart .... BodyPart类代替.....

不知道这是否有差别,但你可以尝试一下。

Don't know if that makes a difference, but you can try it.

这篇关于使用CDO在电子邮件正文中随机感叹号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆