电子邮件格式 [英] Email Formatting

查看:114
本文介绍了电子邮件格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个通过电子邮件发送RichTextBox文本的程序。问题是,当我发送电子邮件时,文本是未格式化的,即没有换行符,没有字体规格等。

我尝试使用RichTextBox的Rtf属性,但发送的电子邮件包含实际的rtf代码和不是格式化文本。

...
aMessage.Body = richTextBox1.Text;
smtp.Send(aMessage) ;

提前感谢。

Eitan

解决方案

也许我应该问一下是否有办法转换rtf格式化电子邮件的纯文本。搜索结果,搜索埃坦

I am trying to make a program that emails the text of a RichTextBox. The problem is that when I send the email, the text is unformatted i.e. no line breaks, no font specifications, etc.

I tried using the Rtf property of the RichTextBox but the email sent contains the actual rtf code and not the formatted text.

...
 aMessage.Body = richTextBox1.Text;
 smtp.Send(aMessage);

Thanks in advance.

Eitan

解决方案

Maybe I should ask if there is a way to convert rtf to formatted plain text for an email.

Eitan


这篇关于电子邮件格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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