mirror of
https://github.com/silicoflare/silicoflare-website.git
synced 2026-05-26 20:17:58 +05:30
36 lines
673 B
HTML
36 lines
673 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>Send Mail</title>
|
|
<script src=
|
|
"https://smtpjs.com/v3/smtp.js">
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
function sendEmail() {
|
|
Email.send({
|
|
Host: "smtp.gmail.com",
|
|
Username: "captcyberfreak@gmail.com",
|
|
Password: "freak@google",
|
|
To: 'silicoflare@gmail.com',
|
|
From: "sender@email_address.com",
|
|
Subject: "Sending Email using javascript",
|
|
Body: "Well that was easy!!",
|
|
})
|
|
.then(function (message) {
|
|
alert("mail sent successfully")
|
|
});
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<form method="post">
|
|
<input type="button" value="Send Email"
|
|
onclick="sendEmail()" />
|
|
</form>
|
|
</body>
|
|
|
|
</html>
|