github.com/go-email-validator/go-email-validator@v0.0.0-20230409163946-b8b9e6a0552e/pkg/ev/evsmtp/smtpclient/interface.go (about)

     1  package smtpclient
     2  
     3  import (
     4  	"crypto/tls"
     5  	"io"
     6  	"net/smtp"
     7  )
     8  
     9  // SMTPClient is interface of smtp.Client
    10  type SMTPClient interface {
    11  	Close() error
    12  	Hello(localName string) error
    13  	StartTLS(config *tls.Config) error
    14  	TLSConnectionState() (state tls.ConnectionState, ok bool)
    15  	Verify(addr string) error
    16  	Auth(a smtp.Auth) error
    17  	Mail(from string) error
    18  	Rcpt(to string) error
    19  	Data() (io.WriteCloser, error)
    20  	Extension(ext string) (bool, string)
    21  	Reset() error
    22  	Noop() error
    23  	Quit() error
    24  }