简体   繁体   English

在IIS7.5中发送电子邮件(CDO.Message)-电子邮件中的撇号

[英]Sending email in IIS7.5 (CDO.Message) - apostrophe in email

We use IIS7.5 and CDO.Message to send emails from a website written in Classic ASP - but when an email address contains an apostrophe, the send fails. 我们使用IIS7.5和CDO.Message从用Classic ASP编写的网站发送电子邮件-但是,当电子邮件地址中包含撇号时,发送将失败。 I've tried encoding the apostrophe as ' 我尝试将撇号编码为' - but this doesn't make an difference. -但这没什么关系。

Does anyone have any ideas? 有人有什么想法吗? Is it just that IIS cannot handle apostrophes in emails? 仅仅是IIS无法处理电子邮件中的撇号吗?

Thanks 谢谢

It's probably an issue with your ASP code, and not not an IIS problem. 这可能与您的ASP代码有关,而不是IIS问题。 Are you correctly escaping apostrophes by replacing them with a double? 您是否通过将双引号替换为双引号来正确地转义了撇号?

In classic ASP, you have to replace the ' with '' . 在传统的ASP,你有来取代'''

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM