js通过插件发送邮件

这个插件为SmtpJS

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

方法很简单




Email.send(
"[email protected]", "[email protected]", "This is a subject", "this is the body", "smtp.yourisp.com", "username", "password"
);
     Email.send("[email protected]",
            "[email protected]",
            "官网通知邮件",
            body,
            { 
                token:token,
                callback: function done(message) { 
                   
                  
                }  
            }
        );

 

生成token

js通过插件发送邮件_第1张图片

转载于:https://www.cnblogs.com/longsiyuan/p/10033911.html

你可能感兴趣的:(js通过插件发送邮件)