|
@@ -77,7 +77,7 @@ func LoginAuth(username, password string) smtp.Auth {
|
|
return &loginAuth{username, password}
|
|
return &loginAuth{username, password}
|
|
}
|
|
}
|
|
|
|
|
|
-func (a *loginAuth) Start(server *smtp.ServerInfo) (string, []byte, error) {
|
|
|
|
|
|
+func (a *loginAuth) Start(_ *smtp.ServerInfo) (string, []byte, error) {
|
|
return "LOGIN", []byte{}, nil
|
|
return "LOGIN", []byte{}, nil
|
|
}
|
|
}
|
|
|
|
|
|
@@ -95,8 +95,7 @@ func (a *loginAuth) Next(fromServer []byte, more bool) ([]byte, error) {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
|
|
|
|
-type Sender struct {
|
|
|
|
-}
|
|
|
|
|
|
+type Sender struct{}
|
|
|
|
|
|
func (s *Sender) Send(from string, to []string, msg io.WriterTo) error {
|
|
func (s *Sender) Send(from string, to []string, msg io.WriterTo) error {
|
|
opts := conf.Email
|
|
opts := conf.Email
|