| 14 | |
| 15 | type ( |
| 16 | Email struct { |
| 17 | Auth smtp.Auth |
| 18 | Header map[string]string |
| 19 | Template *template.Template |
| 20 | // TLSConfig, when non-nil, is used for both implicit TLS (SMTPS) |
| 21 | // and STARTTLS. Callers that need a custom root pool or a |
| 22 | // specific ServerName should set this. The config is cloned per |
| 23 | // dial, so callers can reuse a single value across sends; they |
| 24 | // must not mutate it concurrently with an in-flight Send. |
| 25 | TLSConfig *tls.Config |
| 26 | // DialTimeout caps the TCP (and, for SMTPS, TLS) connect phase. |
| 27 | // It does not bound the full SMTP conversation after the client |
| 28 | // is returned. Zero means no caller-imposed timeout. |
| 29 | DialTimeout time.Duration |
| 30 | smtpAddress string |
| 31 | } |
| 32 | |
| 33 | Message struct { |
| 34 | ID string `json:"id"` |
nothing calls this directly
no outgoing calls
no test coverage detected