CMimeMessage的文本被截断了吗? [英] Text to CMimeMessage is being truncated?

查看:79
本文介绍了CMimeMessage的文本被截断了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。 I C ++在调用"AddText"时在CMimeMessage上,我添加的文字长度为1200个字符,然后在我的Outlook中收到邮件时,我看到文本已被切割到第1000个字符周围。我怀疑常量为" #define

ATLSMTP_MAX_LINE_LENGTH 1000
"与它有关?我该如何解决这个问题?我试着反复调用AddText并且 传递较短的(<1000个字符)字符串,但随后我的字符串被添加为邮件的附件..如何将
长字符串添加到邮件正文中?谢谢你,Danny

解决方案

您好,


您可以尝试使用PJ Naughter的课程发送电子邮件:


http://www.naughter.com/cmapi.html


此致,Guido


Hello. I C++ when call "AddText" on a CMimeMessage and the text I add is say 1200 characters long, then upon receiving the mail in my Outlook I see that the text has been cut around the 1000'th character. I suspect the constant "#define
ATLSMTP_MAX_LINE_LENGTH 1000
" has something to do with it? How can I work around this? I tried calling AddText repeatedly and  pass shorter (< 1000 chars) strings, but then my strings are added as attachments to the mail.. How can I add a long string to the body of my mail? Thank you, Danny

解决方案

Hello,

you can try to send email with PJ Naughter's class:

http://www.naughter.com/cmapi.html

Regards, Guido


这篇关于CMimeMessage的文本被截断了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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