courier v0.1.0 Courier

This module is useed by your custom mailer.

Example:

defmodule MyApp.Mailer do
  use Courier, otp_app: :my_app
end

Summary

Functions

render(message, view, template, assigns \\ [])

View rendering for mail parts

Based upon the template extension the mail will have the proper content-type added. For example with the following:

Courier.render(mail, MailerView, "user.html")

Courier will use Mail.put_html/2 once it has rendered the template.