File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,23 +117,23 @@ func (s *Session) AuthPlain(username, password string) error {
117
117
118
118
func (s *Session ) Mail (from string , opts *smtp .MailOptions ) error {
119
119
if !s.auth {
120
- return ErrAuthRequired
120
+ return smtp. ErrAuthRequired
121
121
}
122
122
log.Println (" Mail from:" , from)
123
123
return nil
124
124
}
125
125
126
126
func (s *Session ) Rcpt (to string ) error {
127
127
if !s.auth {
128
- return ErrAuthRequired
128
+ return smtp. ErrAuthRequired
129
129
}
130
130
log.Println (" Rcpt to:" , to)
131
131
return nil
132
132
}
133
133
134
134
func (s *Session ) Data (r io .Reader ) error {
135
135
if !s.auth {
136
- return ErrAuthRequired
136
+ return smtp. ErrAuthRequired
137
137
}
138
138
if b , err := ioutil.ReadAll (r); err != nil {
139
139
return err
You can’t perform that action at this time.
0 commit comments