BambooSes.Message.Destination (bamboo_ses v0.3.0) View Source
Contains functions for composing destination information
Link to this section Summary
Functions
Adds single recipient or list of recipients to the "Bcc" field of the destination struct
Adds single recipient or list of recipients to the "Cc" field of the destination struct
Adds single recipient or list of recipients to the "To" field of the destination struct
Link to this section Types
Specs
recipients() :: [Bamboo.Email.address()]
Specs
t() :: %BambooSes.Message.Destination{ BccAddresses: recipients(), CcAddresses: recipients(), ToAddresses: recipients() }
Link to this section Functions
Adds single recipient or list of recipients to the "Bcc" field of the destination struct
Example
put_bcc(destination, [{"John Doe", "john.doe@example.com"}, {"Jane Doe", "jane.doe@example.com"}]
put_bcc(destination, {"John Doe", "john.doe@example.com"})
Specs
put_cc(t(), [Bamboo.Email.address()]) :: t()
put_cc(t(), Bamboo.Email.address()) :: t()
Adds single recipient or list of recipients to the "Cc" field of the destination struct
Example
put_cc(destination, [{"John Doe", "john.doe@example.com"}, {"Jane Doe", "jane.doe@example.com"}]
put_cc(destination, {"John Doe", "john.doe@example.com"})
Specs
put_to(t(), [Bamboo.Email.address()]) :: t()
put_to(t(), Bamboo.Email.address()) :: t()
Adds single recipient or list of recipients to the "To" field of the destination struct
Example
put_to(destination, [{"John Doe", "john.doe@example.com"}, {"Jane Doe", "jane.doe@example.com"}]
put_to(destination, {"John Doe", "john.doe@example.com"})