naver-mailer

Simple Naver Mailer

Usage no npm install needed!

<script type="module">
  import naverMailer from 'https://cdn.skypack.dev/naver-mailer';
</script>

README

Naver Mailer

가벼운 네이버 메일러

install

npm

$ npm install naver-mailer

yarn

$ yarn add naver-mailer

Example

ES5

const NaverMailer = require('naver-mailer').default;
const mailer = new NaverMail('id', 'super secret password');

mailer.send(mailer.createMailOption('to@to.com', 'title', 'description', false));

ES6

import NaverMail from 'naver-mailer';;
const mailer = new NaverMail('id', 'super secret password');

mailer.createMailOption('to@to.com', 'title', 'description', false);
mailer.send();

Add Attachments

const NaverMail = require('naver-mailer');
const mailer = new NaverMail('id', 'super secret password');

mailer.createMailOption('to@to.com', 'title', 'description');
mailer.addAttachments('./your_file_path', 'this_is_option');
mailer.send();