UNPKG

smart-mailer

Version:

Simple Node.js email sender for Gmail, Outlook, or custom SMTP.

16 lines (14 loc) 337 B
require('dotenv').config(); const sendMail= require('./index'); (async () => { try { await sendMail({ to: '210303105486@paruluniversity.ac.in', subject: 'Test Email', text: 'Hello from smart-mailer!', }); console.log('✅ Email sent!'); } catch (err) { console.error(err); } })();