mirror of
https://github.com/AfterShip/email-verifier.git
synced 2025-02-06 10:02:30 +00:00
297b5f6f61
* # support gmail & yahoo smtp check by api * # upgrade go * # fix CI Co-authored-by: qiuchengquan <OisCircle> Co-authored-by: Herbert Lu <15816537946@163.com>
13 lines
277 B
Go
13 lines
277 B
Go
package emailverifier
|
|
|
|
const (
|
|
YAHOO = "yahoo"
|
|
)
|
|
|
|
type smtpAPIVerifier interface {
|
|
// isSupported the specific host supports the check by api.
|
|
isSupported(host string) bool
|
|
// check must be called before isSupported == true
|
|
check(domain, username string) (*SMTP, error)
|
|
}
|