Skip to content

bench-marc/bamboo_sendinblue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BambooSendinBlue

An Adapter for the Bamboo email app. Uses SendInBlue API v2.0

Installation

If available in Hex, the package can be installed as:

  1. Add bamboo_sendinblue to your list of dependencies in mix.exs:
def deps do
  [{:bamboo_sendinblue, "~> 0.2.0"}]
end
  1. Ensure bamboo is started before your application:
def application do
  [applications: [:bamboo]]
end
  1. Setup your SendinBlue configuration:
# In your config/config.exs file
config :my_app, MyApp.Mailer,
  adapter: Bamboo.SendinBlueAdapter,
  api_key: "your-api-key"
  1. Follow Bamboo Getting Started Guide

Usage

email = Email.new_email(
      from: {"From", "[email protected]"},
      subject: "My Subject",
      text_body: "TEXT BODY",
      html_body: "HTML BODY",
    )
    |> Bamboo.Mailer.normalize_addresses
    |> Email.put_header("Reply-To", {"ReplyTo", "[email protected]"})
    |> Email.put_private("template_id", template_id)
    |> Email.put_private("template_params", template_params)

email |> SendinBlueAdapter.deliver(@config)

Contributing

Before opening a pull request you can open an issue if you have any question or need some guidance.

Here's how to setup the project:

$ git clone https://github.com/biospank/bamboo_sendinblue.git
$ cd bamboo_sendinblue
$ mix deps.get
$ mix test

Once you've made your additions and mix test passes, go ahead and open a Pull Request.

TODO

  1. Attachments

License

Bamboo SendinBlueAdapter is released under The MIT License (MIT).

About

A SendinBlue adapter for Bamboo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 100.0%