1.3.0 • Published 1 month ago
@storecraft/mailer-providers-http v1.3.0
storecraft
Official serverless http email providers
Supports wellknown http-based serverless
friendly email
providers,
npm i @storecraft/mailer-providers-http
Howto
Sendgrid
import { App } from '@storecraft/core';
import { SendGrid } from '@storecraft/mailer-providers-http/sendgrid';
const app = new App(config)
.withPlatform(new NodePlatform())
.withDatabase(new MongoDB())
.withStorage(new GoogleStorage())
.withMailer(
new SendGrid(
{
apikey: process.env.SEND_GRID_SECRET
}
)
).init();
Storecraft will search the following env
variables
SENDGRID_API_KEY=<key>
So, you can instantiate with empty config
.withMailer(
new SendGrid()
)
Resend
import { App } from '@storecraft/core';
import { Resend } from '@storecraft/mailer-providers-http/resend';
const app = new App(config)
.withPlatform(new NodePlatform())
.withDatabase(new MongoDB())
.withStorage(new GoogleStorage())
.withMailer(
new Resend(
{
apikey: process.env.RESEND_API_KEY
}
)
).init();
Storecraft will search the following env
variables
RESEND_API_KEY=<key>
So, you can instantiate with empty config
.withMailer(
new Resend()
)
Mailchimp
import { App } from '@storecraft/core';
import { MailChimp } from '@storecraft/mailer-providers-http/mailchimp';
const app = new App(config)
.withPlatform(new NodePlatform())
.withDatabase(new MongoDB())
.withStorage(new GoogleStorage())
.withMailer(
new MailChimp(
{
apikey: process.env.MAILCHIMP_API_KEY
}
)
).init();
Storecraft will search the following env
variables
MAILCHIMP_API_KEY=<key>
So, you can instantiate with empty config
.withMailer(
new MailChimp()
)
Mailgun
import { App } from '@storecraft/core';
import { Mailgun } from '@storecraft/mailer-providers-http/mailgun';
const app = new App(config)
.withPlatform(new NodePlatform())
.withDatabase(new MongoDB())
.withStorage(new GoogleStorage())
.withMailer(
new Mailgun(
{
apikey: process.env.MAILGUN_API_KEY
}
)
).init();
Storecraft will search the following env
variables
MAILGUN_API_KEY=<key>
So, you can instantiate with empty config
.withMailer(
new Mailgun()
)
Author: Tomer Shalev (tomer.shalev@gmail.com)
1.0.17
2 months ago
1.0.16
3 months ago
1.2.5
2 months ago
1.3.0
1 month ago
1.0.15
3 months ago
1.0.14
3 months ago
1.0.13
3 months ago
1.0.11
4 months ago
1.0.12
4 months ago
1.0.9
5 months ago
1.0.8
5 months ago
1.0.7
6 months ago
1.0.6
8 months ago
1.0.10
4 months ago
1.0.5
9 months ago
1.0.4
9 months ago
1.0.3
9 months ago
1.0.2
9 months ago
1.0.1
11 months ago
1.0.0
1 year ago