We have an C# application which sends emails to clients. In these emails can be information about several things and this information can contains a note.
我们有一个C#应用程序,可以向客户发送电子邮件。在这些电子邮件中可以是有关几件事的信息,这些信息可以包含注释。
Example email:
Person: John Age: 35 Note: He works as developer. (Jonn's picture) (Excel table)
人:John年龄:35注:他是开发人员。 (Jonn的头像)(Excel表)
Person: Mary Age: 40 Note: (Another picture) bla bla bla
人:玛丽年龄:40注意:(另一张图片)bla bla bla
Until now, we extracted the plain text of the note, but now we want to send the whole note (it is written in rtf format and it can contain images, excel tables and so on).
到目前为止,我们提取了笔记的纯文本,但现在我们要发送整个笔记(它以rtf格式编写,它可以包含图像,excel表等)。
The email body is made in HTML and can contain several notes.
电子邮件正文是用HTML制作的,可以包含多个注释。
Does someone know what will be the best option to add these notes to the email? Is it that possible? because the body is a HTML document and I have to add several notes... Maybe is it easier as image (try to get an image from the rtf)? or is it better in HTML?
有人知道将这些笔记添加到电子邮件中的最佳选择是什么?这有可能吗?因为正文是一个HTML文档,我必须添加几个注释...也许它更容易作为图像(尝试从rtf获取图像)?还是HTML更好?
I hope you can help me or guide me. Thank you in advance. Regards.
我希望你能帮助我或指导我。先感谢您。问候。
1 个解决方案
#1
0
Definitely its possible. I did similar sort of thing. First read RTF contents into a string (say rtfContent) by using InputStreamReader, then pass this string to a method ConvertRtf2Html(rtfContent). You can follow this link to download the project which converts RTF content to HTML and much(I don't know all the functionality, as I used only ConvertRtf2Html() method)
绝对是可能的。我做了类似的事情。首先使用InputStreamReader将RTF内容读入字符串(比如rtfContent),然后将此字符串传递给方法ConvertRtf2Html(rtfContent)。您可以按照此链接下载将RTF内容转换为HTML的项目(我不知道所有功能,因为我只使用ConvertRtf2Html()方法)
#1
0
Definitely its possible. I did similar sort of thing. First read RTF contents into a string (say rtfContent) by using InputStreamReader, then pass this string to a method ConvertRtf2Html(rtfContent). You can follow this link to download the project which converts RTF content to HTML and much(I don't know all the functionality, as I used only ConvertRtf2Html() method)
绝对是可能的。我做了类似的事情。首先使用InputStreamReader将RTF内容读入字符串(比如rtfContent),然后将此字符串传递给方法ConvertRtf2Html(rtfContent)。您可以按照此链接下载将RTF内容转换为HTML的项目(我不知道所有功能,因为我只使用ConvertRtf2Html()方法)