Mailer Outlook Send - Documentation

Code


const sendEmail = require('jwz/mailer/outlook');

const sender = 'sender@outlook.com';
const password = '1234'; // Please note: storing password in plain text is insecure.

const receiver = 'receiver@outlook.com';

const subject = 'Test';
const text = 'This is a test email.'; // Added some content to the body

sendEmail(sender, password, receiver, subject, text);
            

Usage

This code sends an email using the jwz/mailer/outlook/send library. The sender provides their Outlook email and password, along with the recipient's email, subject, and message body. The function sendEmail then sends the email.

Explanation

The script imports the jwz/mailer/outlook/send module to handle email sending through Outlook. It defines key parameters for sending an email and executes the send function.

Security Note

Storing passwords in plain text is not secure. It is recommended to use environment variables to store credentials securely.