js通过插件发送邮件


这个插件为SmtpJS

官网地址为  https://www.smtpjs.com/

方法很简单

<script src="https://smtpjs.com/v2/smtp.js">
</script>


Email.send(
"from@you.com", "to@them.com", "This is a subject", "this is the body", "smtp.yourisp.com", "username", "password"
);
     Email.send("businesssmtp@ruichenghealth.com",
            "businesssmtp@ruichenghealth.com",
            "官网通知邮件",
            body,
            { 
                token:token,
                callback: function done(message) { 
                   
                  
                }  
            }
        );

 

生成token


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM