Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loopback-connector-mailgun

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-connector-mailgun - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "loopback-connector-mailgun",
"version": "0.0.2",
"version": "0.0.3",
"description": "Loopback connector module which allow to send emails via Mailgun",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,56 @@

# loopback-connector-mailgun
## loopback-connector-mailgun
Loopback connector module which allow to send emails via Mailgun.
## 1. Installation
````sh
npm install loopback-connector-mailgun --save
````
## 2. Configuration
datasources.json
{
"mailgun": {
"connector": "loopback-connector-mailgun",
"apikey": "[your api key here]",
"domain": "[your domain here]"
}
}
model-config.json
{
"Email": {
"dataSource": "mailgun",
"public": false
}
}
Additionaly you can set defaults
{
"mailgun": {
"connector": "loopback-connector-mailgun",
"apikey": "[your api key here]",
"defaults": {
"someSettings": "SomeSettingsValues"
}
}
}
## 3. Use
Basic option same as built in Loopback. Returns a Promise
loopback.Email.send({
to: "to@to.com",
from: "fron@from.com",
subject: "subject",
text: "text message",
html: "html <b>message</b>"
})
.then(function(response){})
.catch(function(err){});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc