使用文本框的电子邮件格式是什么?这可能发生吗?或者我会使用richtextbox代替? [英] What is the format for email using textbox? Is that possible to happen? Or am I gonna use richtextbox instead?

查看:128
本文介绍了使用文本框的电子邮件格式是什么?这可能发生吗?或者我会使用richtextbox代替?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道使用文本框的电子邮件格式是否正确。因为我要投入很多或收件人。我只打电话给文本框

I don't know the correct format for email using textbox. because I am going to put a lot or recipients. I'm gonna call the textbox only

推荐答案

没有一个正确的格式。主要消息可以有不同的部分,每个部分都有自己的格式:文本,图形等。其中一种内容类型是HTML,但有些使用RTF(过于陈旧)。在所有处理之后,所有内容都被表示并以作为纯文本发送,但是部分文本可以编码为一些纯文本表示,通常使用base64。例如,HTML已经是纯文本,因此不使用base64。



您正在谈论的是与UI无关的内容。就邮件而言,这是一个方便的问题。如果您希望用户将所有内容类型放在纯文本格式中并按照用户想要的方式对所有内容类型进行编码,那么原则上它将完美地工作,但用户不希望这样做。如果您使用 RichTextBox ,它将帮助您将用户的内容写为RTF,但它太有限了。



最好的方法是一些基本邮件客户端提供的方法。它为您提供了一些选项,用于输入主要部分内容类型(通常是HTML或纯文本)的格式化和无格式文本和选项。它允许用户通过导出单独的文件来添加部件,并为每个文件指定内容处置。内容处置将有助于选择,例如,PNG图像是用另存为表示还是作为邮件内容中文档流的一部分表示。这样,用户可以使用任何外部编辑器(与使用图像编辑器的方式相同)来编辑单独的部件。



请参阅:

http://en.wikipedia.org/wiki/Content_type [ ^ ],

http://en.wikipedia.org/wiki/MIME [ ^ ],

http: //www.w3.org/Protocols/rfc2616/rfc2616-sec19.html [ ^ ](注意内容处理),

http://en.wikipedia.org/wiki/E-mail [ ^ ]。



-SA
There is no one correct format for that. Main messages can have different parts, each in its own "format": text, graphics, and more. One of the content types is HTML, but some use RTF (way too obsolete). After all processing, everything is represented and sent as a plain text, but parts of the text can be encoded to some plain-text representation, typically, using base64. For example, HTML is already the plain text, so base64 is not used.

You are talking about something unrelated, the UI. As far as mail is concerned, it's a matter of convenience. If you want the user to put all content types in a plain-text format and encode all the content types the way user wants, it will, in principle, perfectly work, but the user would not want to do all that. If you use, say, RichTextBox, it will help you to write user's content as RTF, but it would be too limited.

The best approach is the one provided by some base mail clients. It gives you some option for entering formatted and unformatted text and options for your main-part content type (usually HTML or plain text). It allows the user to add parts by exporting separate files and to specify content disposition for each. Content disposition will help to choose, for example, if a PNG image is represented with "save as" or as a part of document flow inside the mail content. This way, the user can use any external editors (the same way as one would use an image editor) to edit separate parts.

Please see:
http://en.wikipedia.org/wiki/Content_type[^],
http://en.wikipedia.org/wiki/MIME[^],
http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html[^] (pay attention for "content disposition"),
http://en.wikipedia.org/wiki/E-mail[^].

—SA


这篇关于使用文本框的电子邮件格式是什么?这可能发生吗?或者我会使用richtextbox代替?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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