且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在发送前删除电子邮件正文中的文本?

更新时间:2022-12-03 09:18:59

您永远不会将 Item.Body 属性设置回存储在 strBody 变量中的新值.还要记住,您将清除格式,因为您正在处理纯文本正文而不是 MailItem.HTMLBody.

You never set the Item.Body property back with the new value stored in the strBody variable. Also keep in mind that you will wipe out the formatting since you are dealing with the plain text body rather than MailItem.HTMLBody.