Bamboo GmailAdapter v0.2.0 Bamboo.GmailAdapter.RFC2822 View Source
RFC2822 Parser: Adapted from elixir-mail
Bcc headers are blacklisted during execution of
render/1
in the original repository.
It is unclear why the block on bcc was imposed, but this module removes the blacklist.
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 RFC2882 spec
Will render a given header according to the RFC2882 spec
Will render all headers according to the RFC2882 spec
Render an individual part
Builds a RFC2822 timestamp from an Erlang timestamp
Link to this section Functions
Renders a message according to the RFC2882 spec
Will render a given header according to the RFC2882 spec
Will render all headers according to the RFC2882 spec
Render an individual part
An optional function can be passed used during the rendering of each individual part
Builds a RFC2822 timestamp from an Erlang timestamp
RFC2822 3.3 - Date and Time Specification
This function always assumes the Erlang timestamp is in Universal time, not Local time