// Check Try to initiate SMTP dial and negotiation and try to close connection.
Check Try to initiate SMTP dial and negotiation and try to close connection.
// Check Try to initiate SMTP dial and negotiation and try to close connection .
func (s *smtpClient) Check(ctx context.Context) errors.Error {
	defer s.Close()
	if s.cli == nil {
		if _, e := s.Client(ctx); e != nil {
			return e
		}
	}
	if e := s.cli.Noop(); e != nil {
		return ErrorSMTPClientNoop.ErrorParent(e)
	}
	return nil
}
func ( s * smtpClient ) Check ( ctx context . Context ) errors . Error { defer s . Close ( ) if s . cli == nil { if _ , e := s . Client ( ctx ) ; e != nil { return e } } if e := s . cli . Noop ( ) ; e != nil { return ErrorSMTPClientNoop . ErrorParent ( e ) } return nil }
Check Try to initiate SMTP dial and negotiation and try to close connection.
Check Try to initiate SMTP dial and negotiation and try to close connection .