strapi-provider-email-zeptomail
v0.1.6
Published
Zeptomail provider for strapi email
Downloads
14
Maintainers
Readme
Strapi provider email zeptomail
Send emails from Strapi through zeptomail.
Introduction
Zeptomail is a popular email service, which is among the best at delivering transactional mail messages.
If you want your Strapi users to reset passwords, receive email confirmation etc, look into Zeptomail.
Requirements
- Working Strapi v4 project
- A valid Zeptomail account
- Zeptomail url and Zeptomail token
- Configure email plugin in Strapi
The Steps to follow
1. Zeptomail account
Get a free acoount on zeptomail.com and send 100 mails per day for FREE. Verify your account and purchase credit to send more.
2. Installation
Use NPM
npm i strapi-provider-email-zeptomail --save
Use Yarn
yarn add strapi-provider-email-zeptomail
3. Configuration
Zeptomail credentials
Obtain the url and token from zeptomail account
Set environment variables
Add ZEPTOMAIL_URL
and ZEPTOMAIL_TOKEN
keys together with correspondig values to the .env file of your Strapi project.
Example on environment variables
...
ZEPTOMAIL_URL=value_from_your_zeptomail_account
ZEPTOMAIL_TOKEN=value_from_your_zeptomail_account
...
4. Enable email plugin
Edit ./config/plugins.js
or create the plugins.js
file in ./config
directory if it doesn't exist.
The snippet below demonstrates how to achieve enabling the email plugin in Strapi. Replace [email protected] with your valid email address. For example, [email protected]
Notes:
- If you don't specify the defaultFrom, it will default to [email protected]
- Replace the values in defaultFrom,defaultReplyTo,replyTo, and sender_name with your own valid values. These should have been set in Zeptomail
Email Configurations
| Key | Sub-Key | Value | | --------------- | ------- | ------------------------------- | | provider | | strapi-provider-email-zeptomail | | providerOptions | url | env("ZEPTOMAIL_URL") | | providerOptions | apiKey | env("ZEPTOMAIL_TOKEN") |
Email settings
| Key | Value | | -------------- | ------------------- | | defaultFrom | [email protected] | | defaultReplyTo | [email protected] | | replyTo | [email protected] | | sender_name | Your App name |
email: {
config: {
provider: "strapi-provider-email-zeptomail",
providerOptions: {
url: env("ZEPTOMAIL_URL"),
apiKey: env("ZEPTOMAIL_TOKEN"),
}
},
settings: {
defaultFrom: "[email protected]",
defaultReplyTo: "[email protected]",
replyTo: "[email protected]",
sender_name: "Your App name"
},
}
Links
Zeptomail Email API documentation
How to support
- Send an issue
- Contribute code and documentation
- Buy me coffee => https://cutt.ly/bwEy0ejA