Bamboo SMTP Adapter v1.2.0 Bamboo.SMTPAdapter
Sends email using SMTP.
Use this adapter to send emails through SMTP. This adapter requires that some settings are set in the config. See the example section below.
Example config
# In config/config.exs, or config.prod.exs, etc.
config :my_app, MyApp.Mailer,
adapter: Bamboo.SMTPAdapter,
server: "smtp.domain",
port: 1025,
username: "your.name@your.domain", # or {:system, "SMTP_USER"}
password: "pa55word", # or {:system, "SMTP_PASS"}
tls: :if_available, # can be `:always` or `:never`
ssl: :false, # can be `:true`
retries: 1
# Define a Mailer. Maybe in lib/my_app/mailer.ex
defmodule MyApp.Mailer do
use Bamboo.Mailer, otp_app: :my_app
end
Summary
Functions
Callback implementation for c:Bamboo.Adapter.deliver/2