bloggify-mailersend
v1.0.0
Published
Bloggify plugin for sending emails via mailersend.
Maintainers
Readme
bloggify-mailersend
Bloggify plugin for sending emails via mailersend.
:cloud: Installation
# Using npm
npm install --save bloggify-mailersend
# Using yarn
yarn add bloggify-mailersend:clipboard: Example
const Email = Bloggify.require("bloggify-mailersend");
Email.send({
to_email: "[email protected]"
, from_email: "[email protected]"
, subject: "Hello world!"
, text: "This is a test email."
}, (err, data) => {
console.log(err || data);
});:memo: Documentation
Plugin Configuration
- Object
config:key(String): The MailerSend API key.
send(message)
Send an email.
Params
- Object
message: An object containing:to_email(String): The recipient email address.to_name(String): The recipient name.from_email(String): The sender email address.from_name(String): The sender name.subject(String): The email subject.text(String): The email text content.html(String): The email HTML content.
Return
- Promise A promise resolving the result from MailerSend.
:question: Get Help
There are few ways to get help:
- Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
- For bug reports and feature requests, open issues. :bug:
:yum: How to contribute
Have an idea? Found a bug? See how to contribute.
