After pressing send I get an error message saying:
Failure sending mail. The server must be configured corectly.
function sendEmail() {
Email.send({
Host : "smtp.elasticemail.com 2525",
Username : "myemail@gmail.com",
Password : "PASTED ELASTIC SERVER PASWWORD",
To : "randemail@gmail.com",
From : document.getElementById("email").value,
Subject : "New site email ",
Body : "And this is the body"
}).then(message => alert(message));
}
I thougth something wrong with the way I wrote the port, but wasn't able to find the answer.