Estoy tratando de enviar correos electrónicos a través de javascript con smtp.js. Si abro mi sitio web localmente, todo funciona bien, pero si lo alojo en mi dominio, simplemente deja de funcionar. ¿Cómo puedo hacer que funcione?
function sendEmail() { Email.send({ SecureToken: "5b51f40c-7d97-46db-a4d7-055bc8384828", To: "contact@jayden.hu", From: document.getElementById("input2").value, Subject: "Contact", Body: "Name: " + document.getElementById("input1").value + "<br> E-mail: " + document.getElementById("input2").value + "<br> Message: " + document.getElementById("input3").value, }).then((message) => alert(message, type)); }error me sale:
smtp.js:2 POST https://smtpjs.com/v3/smtpjs.aspx? net::ERR_INTERNET_DISCONNECTED ajaxPost @ smtp.js:2 (anonymous) @ smtp.js:2 send @ smtp.js:2 sendEmail @ (index):185 onsubmit @ (index):139 smtp.js:2 POST https://smtpjs.com/v3/smtpjs.aspx? net::ERR_INTERNET_DISCONNECTED ajaxPost @ smtp.js:2 (anonymous) @ smtp.js:2 send @ smtp.js:2 sendEmail @ (index):185 onsubmit @ (index):139