Skip to content

Commit

Permalink
Encrypted SMTP Credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
theolaa committed Jul 31, 2021
1 parent 23fe4ca commit 26b6832
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions cgi/bmi_calculator.pl
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,20 @@
}
else{
Email.send({
Host: "smtp.elasticemail.com",
Username : "account_validation\@learn.taliaq.com",
Password : "8CDE0ED2F1E5FA245FBCD6EE5B35CD9D0942",
To : "$data{email}",
From :"theolaanstra\@gmail.com",
Subject : "BMI Results",
Body : "Hi \\n Your BMI result says that \\"" + result + "\\"\\r\\nYour BMI is " + bmi
SecureToken : "63a9ea58-9372-4a8d-bb2f-92af80ace97a",
To : "$data{email}",
From : "theolaanstra\@gmail.com",
Subject : "BMI Results",
Body : "Hi \\n Your BMI result says that \\"" + result + "\\"\\r\\nYour BMI is " + bmi
}).then(
function(message) {
console.log("Email Status: " + message);
if (message == "OK") {
document.getElementById("emailbtn").innerHTML = "Email sent - check your junk folder!";
} else {
document.getElementById("emailbtn").innerHTML = "<br/><br/>" + message;
console.log("Email Status: " + message);
if (message == "OK") {
document.getElementById("emailbtn").innerHTML = "Email sent - check your junk folder!";
} else {
document.getElementById("emailbtn").innerHTML = "<br/><br/>" + message;
}
}
}
);
}
}
Expand Down

0 comments on commit 26b6832

Please sign in to comment.