We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@primate/mail
In a store file, say stores/Mailchimp.js:
stores/Mailchimp.js
import mail from "@primate/mail"; import env from "rcompat/env"; export default mail({ provider: "mailchimp", secret: env.MAILCHIMP_API_KEY, options: { server: env.MAILCHIMP_SERVER_PREFIX, }, });
Then in a route, say routes/register.js:
routes/register.js
export default { post(request) { // Handle registration /* ... */ // send email request.store.Mailchimp.send(user.email, { ... }); }, });
The text was updated successfully, but these errors were encountered:
@primate/mailer
should add Mailgun and SendGrid too. that's the one I use.
Sorry, something went wrong.
No branches or pull requests
In a store file, say
stores/Mailchimp.js
:Then in a route, say
routes/register.js
:The text was updated successfully, but these errors were encountered: