// NewManager creates a fresh instance of email manager.
NewManager creates a fresh instance of email manager.
// NewManager creates a fresh instance of email manager .
func NewManager(log zerolog.Logger, host, username, password, from string,
	herm hermes.Hermes, l httpflow.Links) (*Manager, error) {
	if !l.Exist(httpflow.LinkVerification, httpflow.LinkVerificationCancel,
		httpflow.LinkActivation, httpflow.LinkActivationCancel,
		httpflow.LinkRecovery, httpflow.LinkRecoveryCancel) {
		return nil, errors.New("not all links are set up")
	}
	return &Manager{
		log:      log,
		host:     host,
		username: username,
		password: password,
		from:     from,
		herm:     herm,
		links:    l,
	}, nil
}
func NewManager ( log zerolog . Logger , host , username , password , from string , herm hermes . Hermes , l httpflow . Links ) ( * Manager , error ) { if ! l . Exist ( httpflow . LinkVerification , httpflow . LinkVerificationCancel , httpflow . LinkActivation , httpflow . LinkActivationCancel , httpflow . LinkRecovery , httpflow . LinkRecoveryCancel ) { return nil , errors . New ( " " ) } return & Manager { log : log , host : host , username : username , password : password , from : from , herm : herm , links : l , } , nil }
NewManager creates a fresh instance of email manager.
NewManager creates a fresh instance of email manager .