如何以表格格式从数据库发送数据以使用C Sharp发送电子邮件 [英] How Do I Send Data From Database In Table Format To Email With C Sharp

查看:150
本文介绍了如何以表格格式从数据库发送数据以使用C Sharp发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何以表格格式将数据从表格式发送到电子邮件c sharp

how do i send data from database in table format to email with c sharp

推荐答案

两种方式...



1.在输入时使用HTML 编辑器。因此,在编辑器中,您将制作该表格格式并将该HTML保存到数据库中。



2.您将数据保存在普通模式中文本。但是在获取该数据之后,在代码中,您将尝试通过 StringBuilder 类或其他东西形成一个表。然后将其添加到 Mail 对象的主体。
Two ways...

1. Use a HTML Editor while taking input. So, in the Editor, you will make that tabular format and save that HTML into database.

2. You save the data in plain text. But after getting that data, in code you will try to form a table by StringBuilder class or something. Then add that to the body of the Mail object.


这篇关于如何以表格格式从数据库发送数据以使用C Sharp发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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