composeMessage(): ComposeMessage
Composes an email message object with the specified sender, recipient, subject, and body content.
▶const from = 'sender@example.com';
const to = 'recipient@example.com';
const subject = 'Hello!';
const body = '
This is a test email.
';
const from = 'sender@example.com'; const to = 'recipient@example.com'; const subject = 'Hello!'; const body = '
This is a test email.
';const message = mod.composeMessage(from, to, subject, body);
console.log(message); // Output: // { // from: 'sender@example.com', // to: 'recipient@example.com', // subject: 'Hello!', // html: '
This is a test email.
', // }