smtp js

Solutions on MaxInterview for smtp js by the best coders in the world

showing results for - "smtp js"
Marlene
19 Mar 2019
1Email.send({
2    Host : "smtp.yourisp.com",
3    Username : "username",
4    Password : "password",
5    To : 'them@website.com',
6    From : "you@isp.com",
7    Subject : "This is the subject",
8    Body : "And this is the body"
9}).then(
10  message => alert(message)
11);
Romina
03 Nov 2019
1<script src="https://smtpjs.com/v3/smtp.js"></script>
Manuela
26 Aug 2016
1/* SmtpJS.com - v3.0.0 */
2var Email = { send: function (a) { return new Promise(function (n, e) { a.nocache = Math.floor(1e6 * Math.random() + 1), a.Action = "Send"; var t = JSON.stringify(a); Email.ajaxPost("https://smtpjs.com/v3/smtpjs.aspx?", t, function (e) { n(e) }) }) }, ajaxPost: function (e, n, t) { var a = Email.createCORSRequest("POST", e); a.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), a.onload = function () { var e = a.responseText; null != t && t(e) }, a.send(n) }, ajax: function (e, n) { var t = Email.createCORSRequest("GET", e); t.onload = function () { var e = t.responseText; null != n && n(e) }, t.send() }, createCORSRequest: function (e, n) { var t = new XMLHttpRequest; return "withCredentials" in t ? t.open(e, n, !0) : "undefined" != typeof XDomainRequest ? (t = new XDomainRequest).open(e, n) : t = null, t } };