邮件正文中的表创建 [英] Table creation in mail body

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

问题描述

大家好,


我需要知道如何通过邮件以表格格式发送信息

Hello all,


I need to know how to send the information s in table format thru mail

Emp Id   Emp name  Emp age  Emp Destination Emp Salary

101       Bujju      10        IT             20,000


如何以表格格式显示

帮助pl

问候,
Praveen


how to display it in table format

Help pl

Regards,
Praveen

推荐答案

你好

这是一个例子.请遵循并根据您的要求更改逻辑.
单击此处 [
Hello

here is an example. please follow and change the logic according your requirement.
Click Here[^]

thanks
sanjeev


制作mailmessage.IsBodyHtml = True,然后将HTML分配给mailmessage.Body = "html string here"

更多信息
此处 [
Make mailmessage.IsBodyHtml = True and then assign the HTML to mailmessage.Body = "html string here"

More info here[^]


尝试一下

Try this

string text= "<table><tr><td>EmpId</td><td>Emp name</td><td>age</td></tr><tr><td>value</td><td>value</td><td>value</td></tr></table>"


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

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