@popovmp/postmark-email
v1.0.0
Published
PostMarl Email
Downloads
61
Readme
Postmark Email
Sends emails via Postmark
Postmark
sends text mails via https://postmarkapp.com.
Synopsis
import { sendPostMarkEmail } from "@popovmp/postmark-email";
// PostMark model
const postmarkModel = {
token: "POSTMARK-TOKEN",
from : "[email protected]",
url : "https://api.postmarkapp.com/email",
retry: 60000, // Retry time in milliseconds
};
// Email model
const mailModel = {
to : "[email protected]",
subject: "Test email subject",
message: "Test email body.",
};
// Send the email
await function sendPostMarkEmail(postmarkModel, mailModel);
Dependencies
@popovmp/logger
https://www.npmjs.com/package/@popovmp/logger
@popovmp/client-request
https://www.npmjs.com/package/@popovmp/client-request