12 lines
230 B
Go
12 lines
230 B
Go
package smtpclient
|
|
|
|
import "errors"
|
|
|
|
type SMTPClient struct{}
|
|
|
|
func (s SMTPClient) SendMail(templateName string, to string, data any) error {
|
|
if to == "error@error.error" {
|
|
return errors.New("error mail send")
|
|
}
|
|
return nil
|
|
}
|