Documentation ¶
Index ¶
- func RemoveInvalidRecipients(recipients []server.EmailRecipient, allowedDomains []string) []server.EmailRecipient
- func SendBulkMail(toList []server.EmailRecipient, from server.EmailSender, ...)
- func SendIndividualMail(to []server.EmailRecipient, from server.EmailSender, ...) (*rest.Response, error)
- type BulkSendAttempt
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveInvalidRecipients ¶ added in v0.0.9
func RemoveInvalidRecipients(recipients []server.EmailRecipient, allowedDomains []string) []server.EmailRecipient
RemoveInvalidRecipients accepts a list of recipients and removes the ones with domains not in the allowed list
func SendBulkMail ¶
func SendBulkMail(toList []server.EmailRecipient, from server.EmailSender, cc []server.EmailRecipient, bcc []server.EmailRecipient, headers map[string]string, message server.MailMessage, client Client, responseChannel chan BulkSendAttempt)
SendBulkMail sends a batch of email messages to all the specified recipients All the calls to send mail happen in parallel, with their responses returned on the provided channel
func SendIndividualMail ¶
func SendIndividualMail(to []server.EmailRecipient, from server.EmailSender, cc []server.EmailRecipient, bcc []server.EmailRecipient, headers map[string]string, message server.MailMessage, client Client, tags []string, customArgs map[string]string) (*rest.Response, error)
SendIndividualMail sends an email message
Types ¶
type BulkSendAttempt ¶
Click to show internal directories.
Click to hide internal directories.