MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / toAddress

Method toAddress

api/pkg/emails/mailer.go:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (mail *Email) toAddress() string {
19 if strings.TrimSpace(mail.ToName) != "" {
20 return fmt.Sprintf("%s <%s>", mail.ToName, mail.ToEmail)
21 }
22 return mail.ToEmail
23}
24
25// Mailer is used for sending emails
26type Mailer interface {

Callers 1

SendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected