A Zow Mailer API adapter for Carbon, Lucky's mail handler.
Add the dependency to your shard.yml
:
dependencies:
carbon_zow_adapter:
github: bulckens/carbon_zow_adapter.cr
Run shards install
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
)
- 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
- wout - creator and maintainer