阿里云验证码邮件html代码模板

阿里云验证码邮件html代码模板


前端时间我为了一个简单的邮件美观做了很大的头脑,后来想想就算了,还不如直接去别人的邮件里直接扒模板

  • 代码:HTML
  • 日期:2019/6/16
  • 模板类型:验证码
    效果图

在这里插入图片描述
下面代码

<head>
    <base target="_blank" />
    <style type="text/css">::-webkit-scrollbar{ display: none; }</style>
    <style id="cloudAttachStyle" type="text/css">#divNeteaseBigAttach, #divNeteaseBigAttach_bak{display:none;}</style>
    <style id="blockquoteStyle" type="text/css">blockquote{display:none;}</style>
    <style type="text/css">
        body{font-size:14px;font-family:arial,verdana,sans-serif;line-height:1.666;padding:0;margin:0;overflow:auto;white-space:normal;word-wrap:break-word;min-height:100px}
        td, input, button, select, body{font-family:Helvetica, 'Microsoft Yahei', verdana}
        pre {white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;width:95%}
        th,td{font-family:arial,verdana,sans-serif;line-height:1.666}
        img{ border:0}
        header,footer,section,aside,article,nav,hgroup,figure,figcaption{display:block}
        blockquote{margin-right:0px}
    </style>
</head>
<body tabindex="0" role="listitem">
<table width="700" border="0" align="center" cellspacing="0" style="width:700px;">
    <tbody>
    <tr>
        <td>
            <div style="width:700px;margin:0 auto;border-bottom:1px solid #ccc;margin-bottom:30px;">
                <table border="0" cellpadding="0" cellspacing="0" width="700" height="39" style="font:12px Tahoma, Arial, 宋体;">
                    <tbody><tr><td width="210"></td></tr></tbody>
                </table>
            </div>
            <div style="width:680px;padding:0 10px;margin:0 auto;">
                <div style="line-height:1.5;font-size:14px;margin-bottom:25px;color:#4d4d4d;">
                    <strong style="display:block;margin-bottom:15px;">尊敬的用户:<span style="color:#f60;font-size: 16px;"></span>您好!</strong>
                    <strong style="display:block;margin-bottom:15px;">
                        您正在进行<span style="color: red">注销账号</span>操作,请在验证码输入框中输入:<span style="color:#f60;font-size: 24px">182614</span>,以完成操作。
                    </strong>
                </div>
                <div style="margin-bottom:30px;">
                    <small style="display:block;margin-bottom:20px;font-size:12px;">
                        <p style="color:#747474;">
                            注意:此操作可能会修改您的密码、登录邮箱或绑定手机。如非本人操作,请及时登录并修改密码以保证帐户安全
                            <br>(工作人员不会向你索取此验证码,请勿泄漏!)
                        </p>
                    </small>
                </div>
            </div>
            <div style="width:700px;margin:0 auto;">
                <div style="padding:10px 10px 0;border-top:1px solid #ccc;color:#747474;margin-bottom:20px;line-height:1.3em;font-size:12px;">
                    <p>此为系统邮件,请勿回复<br>
                        请保管好您的邮箱,避免账号被他人盗用
                    </p>
                    <p>院主网络科技团队</p>
                </div>
            </div>
        </td>
    </tr>
    </tbody>
</table>
</body>

转载请填写
https://blog.csdn.net/qq_41716624/article/details/92434043

  • 6
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论
以下是一个简单的示例,使用Vue实现阿里云短信验证码登录的代码: ``` <template> <div> <input type="tel" v-model="phone" placeholder="请输入手机号码"> <button @click="sendCode" :disabled="isSending">{{ buttonText }}</button> <input type="text" v-model="code" placeholder="请输入验证码"> <button @click="login" :disabled="!code || isLoggingIn">登录</button> </div> </template> <script> import { sendVerificationCode, loginWithVerificationCode } from '@/api/auth' export default { data() { return { phone: '', code: '', isSending: false, isLoggingIn: false, countdown: 60, buttonText: '获取验证码' } }, methods: { async sendCode() { if (!this.phone) { return this.$message.error('请输入手机号码') } this.isSending = true try { await sendVerificationCode(this.phone) this.countdown = 60 this.buttonText = `${this.countdown}秒后重新发送` const timer = setInterval(() => { this.countdown-- this.buttonText = `${this.countdown}秒后重新发送` if (this.countdown === 0) { clearInterval(timer) this.isSending = false this.buttonText = '获取验证码' } }, 1000) } catch (err) { this.isSending = false this.$message.error(err.message) } }, async login() { if (!this.code) { return this.$message.error('请输入验证码') } this.isLoggingIn = true try { await loginWithVerificationCode(this.phone, this.code) this.$message.success('登录成功') // 跳转到首页 } catch (err) { this.isLoggingIn = false this.$message.error(err.message) } } } } </script> ``` 在此示例中,我们使用了 `sendVerificationCode` 和 `loginWithVerificationCode` 两个方法来发送验证码和登录。您需要根据您自己的实际情况来实现这些方法,这些方法通常会与您的后端API进行交互。 此外,您需要在阿里云控制台中创建一个短信模板,并将其与您的应用程序集成。您需要使用阿里云提供的SDK来发送短信验证码

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Joshua Burgin

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值