jmail发送邮件非常的方便,但是发送的邮件在收件箱中无任何格式,本文中将向您介绍添加html格式的方法。

前台页面.aspx 添加一个div和一个label,Label的内容在Page_Load中调用构造函数生成。

后台页面.cs

protected void Create_MailBody(string mailto,string mailfrom)

{

string mailbody = "

"+mailto + ",";

mailbody += "

Thanks again for granting us the project. We are in the process of lunching he project. We well need your help to confirm or provide the following information.

";

mailbody += "

1. Please confirm that the CAD files as in quote are latest if not please email us the latest. Please also point out the changes between quoted file and latest files.

";

mailbody += "

2. Please provide 2D files with tolerances and critical dimensions for our quality control purpose.

";

mailbody += "

3. Please provide an assembly file if these parts are assembled together.

";

mailbody += "

4. Please provide the mating part drawings if these parts will be assembled the other parts. Or please provide us real samples of mating part. We will try the fitiness before shipping.

";

mailbody += "

We have setup a project website for this project. You may login to view the project team, project launch info and project status.

";

mailbody += "

Please let us know if you have any questions.

";

mailbody += "

Best Regards.

";

mailbody += "

" + mailfrom + "
";

mailbody += "  ICOMold
  6415 Angle RDhttp://www.icomold.com

";

lbl_content.Text = mailbody;

}

这样发送到邮箱后就会按照html格式显示,效果如上图所示。

jmail 发送html,jmail发送html格式的邮件相关推荐

  1. Jmail的使用,可以发送给多人

    <% '使用时候直接CALL就可以了 function sendmail '================================================== ' 参数设置开始 ...

  2. 邮件发送类,支持HTML格式,支持优先级设置

    www.chinacs.net  2002-5-9  中文C#技术站 邮件发送类,支持HTML格式,支持优先级设置.通过SOCKET类实现的 using System; using System.Te ...

  3. spring 发送html邮件,Springboot2.0 发送HTML 格式的邮件。

    目的:使用 Springboot2.0 发送 HTML 格式的邮件 这是建立在 你会使用 springboot2.0 发送邮件的基础上,参考这篇博客: https://blog..net/Tomwil ...

  4. html图片postmultipart,sendmail-MIMEText-MIMEImage-MIMEMultipart.py——发送带图片的HTML格式报表...

    #!/usr/bin/env python #coding:utf-8 # 通过MIMEText类来实现HTML格式的邮件,当要求包含图片数据的邮件内容时,需要引用MIMEImage类 # 若邮件主体 ...

  5. python发html邮件_在python中如何制作发送HTML格式的邮件?

    邮件的设计和制作,作为邮件营销的重要环节,直接影响着一次营销活动转化.我们知道,不同的邮件客户端有不同的解析规则.一封设计精美的邮件,如果Html格式不规范,在客户端显示的效果往往会大打折扣.所以,如 ...

  6. java发送图片邮件_使用javamail发送包含图片的html格式邮件详解

    使用JavaMail可以很方便的发送html格式的邮件,只需要将content-type设置为"text/html"即可.要在邮件中包含图片简单办法是使用image标签,src指向 ...

  7. 【干货】使用Java发送各种格式的邮件

    测试可用: 有些重复代码没有给注释.类的方法作用自行查看API了解,最后附上源码. 首先使用JavaMail的jar,官网可下载. 公共静态的常量: public final static Strin ...

  8. 使用Java发送各种格式的邮件

    转自:https://blog.csdn.net/u011031689/article/details/51326595 测试可用: 有些重复代码没有给注释.类的方法作用自行查看API了解,最后附上源 ...

  9. 1-关于单片机通信数据传输(中断发送,大小端,IEEE754浮点型格式,共用体,空闲中断,环形队列)

    补充: 程序优化 为避免普通发送和中断发送造成冲突(造成死机,复位重启),printf修改为中断发送 写这篇文章的目的呢,如题目所言,我承认自己是一个程序猿.....应该说很多很多学单片机的对于... ...

  10. php jmail实例,ASP_asp jmail发邮件 详细解析,发个个比较详细的asp与jmail 实 - phpStudy...

    asp jmail发邮件 详细解析 发个个比较详细的asp与jmail 实现发送邮件的代码,前一段时间有发过一个简单的JMAIL邮件发邮件的代码,今天就把这个代码做一个具体的注解,并增加了另外两个格式 ...

最新文章

  1. 世界级数学大牛来了!2002年菲尔兹奖得主加盟华为
  2. ios 处理WKContentView的crash
  3. PHP7.0 Window10 Redis安装教程
  4. 机器学习的一些很好的博客
  5. conda install 出错
  6. P2012-拯救世界2【EGF】
  7. pycharm怎么编写python代码_如何设置PyCharm中的Python代码模版(推荐)
  8. php连接mysql乱码原因_PHP连接MYSQL出现乱码的原因与解决办法
  9. 注意:ORACLE 11G ADG RAC 这个情况下并不能高可用
  10. 1415120000,华为这个数字赞爆!
  11. android ui 资源下载,【51CTO推荐】Android UI设计相关下载资源
  12. git The requested URL returned error: 403
  13. react native webview 百度地图_react-native-baidu-map使用及注意问题
  14. MT4跟单软件的API跟单模式有多少种?
  15. threejs包围盒的应用
  16. 稳压二极管_百度百科
  17. Docker安装mysql遇到ERROR 2002
  18. C语言判断第几天(最简版)
  19. Visual Studio如何在一个解决方案下创建多个独立项目并单独运行
  20. 2017NHOI小甲 第五题 折纸

热门文章

  1. irobot擦地机器人故障_不想跪下擦地板!iRobot新神器擦地机器人能否帮到你?
  2. 暗影精灵3等游戏本设置风扇静音
  3. 大疆飞行模拟(DJI Flight Simulator)软件的使用
  4. UltraEdit编辑器+注册机(windows版)让数据处理更简单
  5. Windows| 彻底修改 Windows 系统用户名
  6. 重装win10提示“Windows无法安装到这个磁盘,选中的磁盘具有MBR分区表,在EFI系统上,windows只能安装...”
  7. 视频编解码基础--01
  8. 了解Android布局,了解Android对话框布局
  9. 12、ARM嵌入式系统:点亮4个LED灯
  10. arm linux嵌入式系统教程课后答案,ARM嵌入式系统基础教程课后习题答案及练习题__周立功...