The company website does not use a database or something, useless website builder,
Now we need, fill in the information collected by the customer, mail, send mail only with the front desk, so finding a Smtp.js
- 1. Include the script:
<script src="https://smtpjs.com/v3/smtp.js"> </script>
- 2. Send an email using:
Email.send({ Host : "smtp.yourisp.com", Username : "username", Password : "password", To : '[email protected]', From : "[email protected]", Subject : "This is the subject", Body : "And this is the body" }).then( message => alert(message) );
This plain text password is definitely not safe, while also providing a way SecureToken
Email.send ({ SecureToken: "C973D7AD-F097-4B95-91F4-40ABC5567812", the To: '[email protected]', the From: "[email protected]", the Subject: "This IS The Subject", Body: "And the this iS at the body" }) the then (. the message => Alert (the message) );
in fact, this is not safe, although people do not know the password, but you can use your account spam ah