gmail via wix

Please suggest how to send mail using my gamil smtp server in wix
https://sexcam.bar/

Hi,

you can use nodemailer npm for that task.

insert the function below inside a web module (of course you need to change it to use your relevant details).
don’t forget to allow access to less secure apps on your Gmail account.

import nodemailer from 'nodemailer';

export async function sendMail() {
 let transporter = nodemailer.createTransport({
        service: 'gmail',
        auth: {
            user: "myAmazingNodemailerApp@gmail.com", 
            pass: "thats-a-fake-password" // 
        }
    });
 let info = await transporter.sendMail({
 from: "myAmazingNodemailerApp@gmail.com", // sender address
        to: "stranger@gmail.com", // list of receivers
        subject: "you have won 500k$ :O", // Subject line
        html: `<p>just kidding :(</p>` // html body - i think you can also insert a text property instead of html - check out the nodemailer docs
    });
}