You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*
Sends an email using the jwz/mailer/outlook/send library.
@param {string} sender The email address of the sender.
@param {string} password The password for the sender's email account.
@param {string} receiver The email address of the recipient.
@param {string} subject The subject line of the email.
@param {string} text The body text of the email.
*/
const sendEmail = require('jwz/mailer/outlook/send');
const sender = '[email protected]';
const password = '1234'; // Please note: storing password in plain text is insecure.
const receiver = '[email protected]';
const subject = 'Test';
const text = 'This is a test email.'; // Added some content to the body
sendEmail(sender, password, receiver, subject, text);
note
Using environment variables for passwords is more secure.
GitHub buildRepos
usage
/*
@param org = String
@param repos = Array
@param vis = String
@param token = String
*/
const buildRepos = require('jwz/github/build');
const org = 'your-org-name';
var repos = ['your-repoA', 'your-repoB'];
var vis = 'public';
const token = 'your-token';
const res = await buildRepos(org, repos, vis, token);
console.log(res);