1.0.12 • Published 2 years ago

simple-email-package v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Step -1: Install nodemailer

npm install nodemailer

Step -2: Add this code in app.js file

async function main() {
    try {
        const emailOptions = {
            host: 'your-smtp-host',
            port: 587,
            secure: false,
            user: 'your-smtp-username',
            pass: 'your-smtp-password',
            from: 'your-email@example.com',
            to: 'recipient@example.com',
            subject: 'Test Email',
            text: 'This is a test email sent using the simple-email-package.',
            html: '<p>This is a test email sent using the simple-email-package.</p>',
        };

        await sendEmail(emailOptions);
        console.log('Email sent successfully');
    } catch (error) {
        console.error('Error sending email:', error);
    }
}

main();
1.0.12

2 years ago

1.0.11

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago