Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@evokegroup/mailgun

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evokegroup/mailgun

# Class: Mailgun

Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
10
Maintainers
3
Weekly downloads
 
Created
Source

@evokegroup/mailgun

Class: Mailgun

constructor({ args })

ParameterTypeDefaultDescription
apiKeystringThe Mailgun API key
domainstringThe sending domain
versionstringv3The API version

Properties

NameTypeDefaultDescription
apiKeystringThe Mailgun API key
domainstringThe sending domain
versionstringv3The API version

Methods

sendAPI({ args }) => Promise

Sends mail via the Mailgun API method. See the Mailgun API documentation

ParameterTypeDefaultDescription
fromMailgun.MailAddress, string
toArray<Mailgun.MailAddress>, Mailgun.MailAddress, string
ccArray<Mailgun.MailAddress>, Mailgun.MailAddress, string
bccArray<Mailgun.MailAddress>, Mailgun.MailAddress, string
subjectstring
htmlstring
textstring
mailgunArgsobjectAdditional API parameters.

sendMIME({ args }) => Promise

Sends mail via the Mailgun API MIME method.

ParameterTypeDefaultDescription
fromMailgun.MailAddress, string
toArray<Mailgun.MailAddress>, Mailgun.MailAddress, string
ccArray<Mailgun.MailAddress>, Mailgun.MailAddress, string
bccArray<Mailgun.MailAddress>, Mailgun.MailAddress, string
replyToMailgun.MailAddress, string
senderMailgun.MailAddress, string
subjectstring
htmlMailgun.Alternative, object, string
textMailgun.Alternative, object, string
charsetstringMailgun.Charset.UTF8
contentTransferEncodingstringMailgun.ContentTransferEncoding.base64
forceMultipartAlternativebooleanfalse

Static Methods

getIncomingMessageBasicData(message) => object

Get basic data like to, from, subject, and body from a received message

ParameterTypeDefaultDescription
messagestringThe received message

parseIncomingMessage(message) => object

Parse a received message

ParameterTypeDefaultDescription
messagestringThe received message

Static Properties

Charset

Supported character sets. See @evokegroup/mime

ContentTransferEncoding

Supported content transfer encodings. See @evokegroup/mime

Class: Mailgun.MailAddress extends MIME.MailAddress (@evokegroup/mime)

Class: Mailgun.Alternative extends MIME.Alternative (@evokegroup/mime)

FAQs

Package last updated on 27 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts