Mailtrap.Email.Mailbox (mailtrap v0.1.2)
Mailbox struct
Why mailbox? https://www.rfc-editor.org/rfc/rfc5322#section-3.4
Link to this section Summary
Functions
Builds Mailbox struct
Link to this section Types
Link to this section Functions
Link to this function
build(name, address)
Builds Mailbox struct
examples
Examples
iex> Mailtrap.Email.Mailbox.build(nil, "jane.doe@example.com") %Mailtrap.Email.Mailbox{email: "jane.doe@example.com"}
iex> Mailtrap.Email.Mailbox.build("", "jane.doe@example.com") %Mailtrap.Email.Mailbox{email: "jane.doe@example.com"}
iex> Mailtrap.Email.Mailbox.build("Jane", "jane.doe@example.com") %Mailtrap.Email.Mailbox{email: "jane.doe@example.com", name: "Jane"}