carbon_zow_adapter.cr
carbon_zow_adapter.cr
A Zow Mailer API adapter for Carbon, Lucky's mail handler.
Installation
Add the dependency to your shard.yml
:
dependencies:
carbon_zow_adapter:
github: bulckens/carbon_zow_adapter.cr
Run shards install
Usage
Require this shard in Lucky's shards.cr file:
require "carbon_zow_adapter"
Then set it up in Lucky's email.cr initializer:
BaseEmail.configure do |settings|
settings.adapter = Carbon::ZowAdapter.new(
entity: ENV.fetch("ZOW_MAILER_ENTITY"),
secret: ENV.fetch("ZOW_MAILER_SECRET")
)
end
If you're using an internationalization library, the current language can be set as follows:
settings.adapter = Carbon::ZowAdapter.new(
entity: entity,
secret: secret,
language: Rosetta.locale
)
Contributing
- Fork it (https://github.com/bulckens/carbon_zow_adapter/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- wout - creator and maintainer
Repository
carbon_zow_adapter.cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 4
- 6 months ago
- April 12, 2020
License
MIT License
Links
Synced at
Fri, 08 Nov 2024 00:58:10 GMT
Languages