Bamboo.SesAdapter.RFC2822Renderer (bamboo_ses v0.2.1) View Source

RFC2822 parser will attempt to render a valid RFC2822 message from a %Mail.Message{} data model.

Mail.Renderers.RFC2822.render(message)

The email validation regex defaults to ~r/w+@w+.w+/ and can be overridden with the following config:

config :mail, email_regex: custom_regex

Link to this section Summary

Functions

Renders a message according to the RFC2822 spec.

Renders a given header according to the RFC2822 spec.

Renders all headers according to the RFC2822 spec.

Builds a RFC2822 timestamp from an Erlang timestamp.

Link to this section Functions

Renders a message according to the RFC2822 spec.

Link to this function

render_header(key, value)

View Source

Renders a given header according to the RFC2822 spec.

Link to this function

render_headers(headers, blacklist \\ [])

View Source

Renders all headers according to the RFC2822 spec.

Can take an optional list of headers to blacklist.

Link to this function

render_part(message, render_part_function \\ &render_part/1)

View Source

Render an individual part.

An optional function can be passed used during the rendering of each individual part.

Link to this function

render_parts(parts, fun \\ &render_part/1)

View Source

Builds a RFC2822 timestamp from an Erlang timestamp.

This function always assumes the Erlang timestamp is in Universal time, not Local time.

See RFC2822 3.3 - Date and Time Specification