Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const nodemailer = require("nodemailer");
- // -------- EMAIL ----------
- router.get('/askForCookiesRecipe', function (req, res, next) {
- var smtpTransport = nodemailer.createTransport({
- host:"moutierquiafaim.gmail.com",
- port:465,
- secure:true,
- auth: {
- user: "geronimo@gmail.com",
- pass: "Ouhiouuuuuuu1900"
- }
- });
- smtpTransport.sendMail({
- from: "Deer Wild <geronimo@gmail.com>", // Expediteur
- to: "supergrandma@yopmail.com", // Destinataires
- subject: "Recette", // Sujet
- text: "Le Pudding a L'arsenic✔", // plaintext body
- html: "<b>Emiettez votre vodka, Dans un verre , Deux cuillères de purgatif, Qu'on fait bouillir à feu vif... ✔</b>" // html body
- }, (error, response) => {
- if(error){
- console.log(error);
- }else{
- console.log("Message sent: " + response.message);
- }
- })
- res.end()
- });
- // ----------------------------
Add Comment
Please, Sign In to add comment