This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cipherText": "t9BkZkVW7dAzZJFPVpz0o6uYL20utMT854qZTzdrEELhoOXgwyq4Z5xyaX/1qX9n2zO3xEV5rJtSTyaVjbNCaf5eLSCVDhAGYCex/KmGsjqwAO9+DO62aFXPZVREL9WNio2MO1i0MB6RbVQfIYCu3GYiII4NnYaaPnVTjVaZB2G+aT1y715Z2Fj4xiDOZzaD2Tc7dhCbOWaPV+Ipf69YYpzaID1wQJi0WTzU/SAaYa/uWw7lJNYhatfhlyd+v29Cmye2aJF14yQsvtqsN4y8ZcG3LmXzKkTK11jhH1NDhRvTMIG9csWGUzml39nbw4+yQaVCxzn+XQNs8JkShq5gikE7Def+0LCMq2UoccdelN2Jnkg/TgCvXlxQevOUm5IdyN8dFWKy8lzQxhenrwJViOprTJ9urQYlrlJ5KkUT7vgtLTWoGrp7ZxZVDIq52bTpOepJqE+7gk91TwQtt+sVHaCKbw0ao/+aLQFDjoV4clJ8oAXSr3lF7R+eR+uJjaBOi/Mkp9ADTQoJQ5DFPzLuBYv7KEBAOFD8Et6+jOGnap9xnBG3ht5CbCX/bD034KFosqmrNKrrRy6t5zph4r4hfibZwIqhguhvT1uPNHZ/EAUW/KROGAlclTXmI5rC2kN9VpDwCVZioxohySVvJ9G5FNF0S4cQ3UlukL10AzEznCkinMx1ry2h2PJ+B0m9yAU4JBmA1Gswv7v6ojbBJdkFuGkBSFelX7v5DtR+WtreAPIcvu8/oGlkNqzGj+o/8lQmicOFKF9+1MEbwbSmbqSiEO7YC5ZzUHsCMRF8uYi51yC3W3jPkTv/jNoVGHF1RiD2Zr+7SUMS95WsFMK00SCORhsIX3LppWkXQE6BIRz67ZfNcbkfTMd/cUNAEAVO/gyjCSExspa/JbIGJMpV1kw7T3jmxytSjVUMn9ulm2+njlL0+XgSVIHfNr4xa4szItKQApgC/H7FbNah1+OMropRjEuicXu6kx04CU7f0tzt8D4T7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const region = "asia-east1"; | |
const emailSubject = "Welcome to WaterTop"; | |
const emailTemplate = `<p>Dear Student,</p> <br/> | |
<p>Welcome to School of WaterTop! Thank you for | |
choosing WaterTop as one of your choices and | |
we are pleased to have you here.</p> <br /> | |
<br/> | |
<p>Best Regards,</p> | |
<p>WaterTop</p> | |
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const noreplyEmail = "[email protected]"; | |
const noreplyPassword = | |
"Insert_Your_FROM_Email_Password"; | |
const domain = "gmail"; | |
const transporter = nodemailer.createTransport({ | |
service: domain, | |
auth: { | |
user: noreplyEmail, | |
pass: noreplyPassword, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require("firebase-functions"); | |
const admin = require('firebase-admin'); | |
const nodemailer = require('nodemailer'); | |
const cors = require('cors')({origin: true}); | |
admin. initializeApp(); |