carbon_mailjet_adapter

Version, currently 0.1.01 version
  • 0.1.0latestApr 25, 2024

github.com/wout/carbon_mailjet_adapter

A Mailjet adapter for the carbon email library

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  carbon_mailjet_adapter:
    github: wout/carbon_mailjet_adapter
    version: ~> 0.1.0

Then run:

shards install

shard.yml

Crystal
>= 1.10.0
License
MIT
Author
Wout

Dependencies

Runtime Dependencies

  • carbon~> 0.5.1github: luckyframework/carbon
  • mailjet~> 0.6.0github: wout/mailjet.cr

Development Dependencies

  • ameba*github: crystal-ameba/amebadev
  • webmock*github: manastech/webmock.cr, branch: masterdev
  • spec_mirror*github: wout/spec_mirror.crdev

README

carbon_mailjet_adapter

Integration for Lucky's Carbon email library and mailjet.cr to send emails via Mailjet.

Installation

  1. Add the dependency to your shard.yml:
dependencies:
  carbon_mailjet_adapter:
    github: wout/carbon_mailjet_adapter
  1. Run shards install

Usage

Include the shard:

require "carbon_mailjet_adapter"

Then, configure mailjet.cr:

Mailjet.configure do |settings|
  settings.api_key = "your-api-key"
  settings.secret_key = "your-secret-key"
  settings.default_from = "noreply@email.com"
end

Important

For simplicity and predictability, this adapter will always send using mailjet's v3.1 sending API, regardless of the Mailjet configuration in your project.

Contributing

  1. Fork it (https://github.com/wout/carbon_mailjet_adapter/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'feat: add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • Wout - creator and maintainer