MCPcopy Index your code
hub / github.com/writefreely/writefreely / AddRecipientAndVariables

Method AddRecipientAndVariables

mailer/mailer.go:121–132  ·  view source on GitHub ↗
(r string, vars map[string]string)

Source from the content-addressed store, hash-verified

119}
120
121func (m *Message) AddRecipientAndVariables(r string, vars map[string]string) error {
122 if m.smtpMsg != nil {
123 m.smtpMsg.recipients = append(m.smtpMsg.recipients, Recipient{r, vars})
124 return nil
125 } else {
126 varsInterfaces := make(map[string]interface{}, len(vars))
127 for k, v := range vars {
128 varsInterfaces[k] = v
129 }
130 return m.mgMsg.AddRecipientAndVariables(r, varsInterfaces)
131 }
132}
133
134// Send sends the given message via the preferred provider.
135func (m *Mailer) Send(msg *Message) error {

Callers 1

emailPostFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected