20 lines
302 B
Go
20 lines
302 B
Go
|
package mail
|
||
|
|
||
|
type Option struct {
|
||
|
Host string
|
||
|
Port int
|
||
|
User string
|
||
|
Password string
|
||
|
InsecureSkipVerify bool
|
||
|
}
|
||
|
|
||
|
type OptionFunc func(*Option)
|
||
|
|
||
|
type Mailer struct {
|
||
|
opt *Option
|
||
|
}
|
||
|
|
||
|
func NewMailer(funcs ...OptionFunc) *Mailer {
|
||
|
return &Mailer{}
|
||
|
}
|