邮件标题中找到无效字符 [英] an invalid character was found in the mail header
本文介绍了邮件标题中找到无效字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码不允许我将非英文字符传递给下面的函数而contype是text / calender
附件avCal = Attachment.CreateAttachmentFromString(str.ToString(),contype);
是对此的任何修复?< br $>
谢谢
Hi,
my code is not allowing me to pass Non-English characters to below function and contype is "text/calender"
Attachment avCal = Attachment.CreateAttachmentFromString(str.ToString(), contype);
is the any fix for this ?
Thanks
推荐答案
加下面我解决了
附件avCal = Attachment.CreateAttachmentFromString(str.ToString(),filename +。);
非常感谢。
by adding below i resolved
Attachment avCal = Attachment.CreateAttachmentFromString(str.ToString(), filename+ ".ics");
Thank you so much.
这篇关于邮件标题中找到无效字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文