Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alcaprar/strapi-provider-email-mailtrap
Mailtrap provider for Strapi CMS
https://github.com/alcaprar/strapi-provider-email-mailtrap
Last synced: 1 day ago
JSON representation
Mailtrap provider for Strapi CMS
- Host: GitHub
- URL: https://github.com/alcaprar/strapi-provider-email-mailtrap
- Owner: alcaprar
- License: mit
- Created: 2020-03-24T11:04:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T23:52:10.000Z (about 1 year ago)
- Last Synced: 2024-05-20T23:34:31.093Z (9 months ago)
- Language: JavaScript
- Size: 248 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# strapi-provider-email-mailtrap
Mailtrap provider for Strapi CMS
## How to install it
Using npm: `npm install strapi-provider-email-mailtrap --save`
Using yarn: `yarn add strapi-provider-email-mailtrap`
## Prerequisites
- You need a Mailtrap account: https://mailtrap.io
- From the inbox page get your `username` and `password`.## How to use it
Instruct the email plugin to use the mailtrap provider.
```javascript
module.exports = ({ env }) => ({
// ...
email: {
provider: 'mailtrap',
providerOptions: {
user: env('MAILTRAP_USER', 'default_user'),
password: env('MAILTRAP_PASSWORD', 'default_pass')
},
settings: {
defaultFrom: env('MAILTRAP_DEFAULT_FROM', '[email protected]'),
defaultReplyTo: env('MAILTRAP_DEFAULT_REPLY_TO', '[email protected]'),
},
}
// ...
});
```If you want to use it in every environment, you should add the above code to `config/plugins.js`.
If you want to use it in a certain environment, you should add the above code to `config/env/plugins.js`.