美文网首页
HTML通知邮件模板-纯文本型, 适合系统待办提醒

HTML通知邮件模板-纯文本型, 适合系统待办提醒

作者: zxws1009 | 来源:发表于2023-07-05 11:30 被阅读0次

一. 应用场景

适合各种纯文本类型的系统的邮件-如工作流审核流程待办提醒,工作任务到期提醒,催办督办提醒等。也可用于发送系统各种公告通知等。

项目实现方案:纯html实现。系统发送邮件以此为模板,把动态的内容打上特殊标记,在代码中进行替换,然后邮件发出。

二. 效果展示

经测试,在腾讯QQ邮箱,企业有限,foxmail,阿里邮箱等兼容,移动端效果也不错。

image.png

三. 源码

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>系统通知邮件模板-纯文本型</title>
</head>

<body>
    <div style="font-size: 14px;">
        <br><br><br><br>
        <div style="width: 600px; margin: 0 auto; background-color: #00838a; border-radius: 3px;">
            <div style="padding: 0 15px; padding-bottom: 20px;">
                <div style="height: 72px;">
                    <div>
                        <a href="https://mall.bydauto.com.cn/" target="_blank" rel="noopener"
                            style="text-decoration: none;">
                            <img src="https://mall.bydauto.com.cn/pc/_nuxt/img/logo.97a8e60.svg" style="height: 72px;"
                                alt="BYD" title="BYD">
                        </a>
                    </div>
                </div>
                <div style="background: #fff; padding: 20px 15px; border-radius: 3px;">
                    <div><span style="font-size: 16px; font-weight: bold;">待办通知:</span>
                        <div style="line-height: 24px; margin-top: 10px;">
                            <div>
                                您有一条新的“
                                <span style="font-weight: bold;">订单询价</span>
                                待办,编号为“
                                <span style="font-weight: bold;">XJ230708005</span>
                                ”,收到信息后请尽快
                                <a style="color: #006eff;font-weight: bold;" href="https://mall.bydauto.com.cn/"
                                    target="_blank" rel="noopener">登录MALL系统</a>处理!
                            </div>
                        </div>
                    </div>
                    <div style="margin-top: 30px;">
                        <div><span
                                style="font-size: 15px; font-weight: bold; position: relative; top: -4px;">流程信息</span>
                        </div>
                        <table
                            style="width: 400px; border-spacing: 0px; border-collapse: collapse; border: none; margin-top: 20px;">
                            <tbody>
                                <tr style="height: 45px;">
                                    <td
                                        style="width: 150px; height: 40px; background: #F6F6F6;border: 1px solid #DBDBDB; font-size: 14px; font-weight: normal; text-align: left; padding-left: 14px;">
                                        上一节点</td>
                                    <td
                                        style="width: 250px;height: 40px; border: 1px solid #DBDBDB; font-size: 14px; font-weight: normal; text-align: left; padding-left: 14px;">
                                        订单咨询</td>
                                </tr>
                                <tr style="height: 45px;">
                                    <td
                                        style="width: 150px;height: 40px; background: #F6F6F6;border: 1px solid #DBDBDB; font-size: 14px; font-weight: normal; text-align: left; padding-left: 14px;">
                                        处理人</td>
                                    <td
                                        style="width: 250px;height: 40px; border: 1px solid #DBDBDB; font-size: 14px; font-weight: normal; text-align: left; padding-left: 14px;">
                                        张先生</td>
                                </tr>
                                <tr style="height: 45px;">
                                    <td
                                        style="width: 150px; height: 40px; background: #F6F6F6;border: 1px solid #DBDBDB; font-size: 14px; font-weight: normal; text-align: left; padding-left: 14px;">
                                        当前节点</td>
                                    <td
                                        style="width: 250px;height: 40px; border: 1px solid #DBDBDB; font-size: 14px; font-weight: normal; text-align: left; padding-left: 14px;">
                                        <a style="color: #006eff;" href="https://mall.bydauto.com.cn/" target="_blank"
                                            rel="noopener">订单询价</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div style="margin-top: 60px;margin-bottom: 10px;"><span
                            style="font-size: 13px; font-weight: bold; color: #666;">温馨提醒</span>
                        <div style="line-height: 24px; margin-top: 10px;">
                            <div style="font-size: 13px; color: #666;">使用过程中如有任何问题,请联系LIMS系统管理员。</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div
            style="width: 600px; margin: 0 auto;  margin-top: 50px; font-size: 12px; -webkit-font-smoothing: subpixel-antialiased; text-size-adjust: 100%;">
            <p
                style="text-align: center; line-height: 20.4px; text-size-adjust: 100%; font-family: 'Microsoft YaHei'!important; padding: 0px !important; margin: 0px !important; color: #7e8890 !important;">
                <span class="appleLinks">
                    Copyright © 2023-2024 北京XXXX科技股份有限公司. 保留所有权利。</span>
            </p>
            <p
                style="text-align: center;line-height: 20.4px; text-size-adjust: 100%; font-family: 'Microsoft YaHei'!important; padding: 0px !important; margin: 0px; color: #7e8890 !important; margin-top: 10px;">
                <span class="appleLinks">
                    邮件由系统自动发送,请勿直接回复本邮件!</span>
            </p>
        </div>
    </div>
</body>

</html>

四. 注意事项

  1. 图片问题,需要使用外网可以访问的地址且最好是SSL认证的地址,不然可以会显示不了。
  2. 空格接换行留白,可以用<br/>标签。
  3. css样式一定要是行内样式。
  4. 元素尽量指定宽和高。

--END

相关文章

  • SMTP发送邮件

    发送纯文本格式的邮件 发送HTML格式的邮件 添加附件

  • SpringBoot 发送邮件

    # 依赖 # 配置 # 发送简单文本邮件 # 发送html邮件 # 使用邮件模板发送邮件 添加依赖 配置 新建ht...

  • Python || 发送邮件

    使用Python的stmplib和email发送邮件: 一、纯文本邮件 二、HTML邮件 只需要在构造MIMETe...

  • Python发送邮件

    Python内置对SMTP的支持,可以发送纯文本邮件、HTML邮件以及带附件的邮件。 Python对SMTP支持有...

  • SMTP 发送邮件

    SMTP 是发送邮件的协议,Python 内置对 SMTP 的支持,可以发送纯文本邮件、HTML 邮件以及带附件的...

  • 61. SMTP发送邮件

    SMTP是发送邮件的协议,Python内置对SMTP的支持,可以发送纯文本邮件、HTML邮件以及带附件的邮件。 P...

  • 邮件发送

    SMTP是发送邮件的协议,Python内置对SMTP的支持,可以发送纯文本邮件、HTML邮件以及带附件的邮件。 S...

  • Thymeleaf 学习

    Thymeleaf 简介:java模板引擎。能够处理HTML、XML、JAVAScript、Css 甚至纯文本。类...

  • JSP笔记

    JSP 基本结构JSP 页面组成:模板文本(HTML,XML,纯文本),JSP 元素;JSP 元素:脚本元素,指令...

  • SMTP邮件各类服务

    一、发送普通邮件 固定格式: 二、发送HTML邮件 如果我们要发送HTML邮件,而不是普通的纯文本文件怎么办?方法...

网友评论

      本文标题:HTML通知邮件模板-纯文本型, 适合系统待办提醒

      本文链接:https://www.haomeiwen.com/subject/sykkudtx.html