MCPcopy Index your code
hub / github.com/coder/coder / hello

Method hello

coderd/notifications/dispatch/smtp.go:547–553  ·  view source on GitHub ↗

hello retrieves the hostname identifying the SMTP server. Does not allow overriding.

()

Source from the content-addressed store, hash-verified

545// hello retrieves the hostname identifying the SMTP server.
546// Does not allow overriding.
547func (s *SMTPHandler) hello() (string, error) {
548 val := s.cfg.Hello.String()
549 if val == "" {
550 return "", ErrValidationNoHello
551 }
552 return val, nil
553}
554
555func (*SMTPHandler) hostname() string {
556 h, err := os.Hostname()

Callers 1

clientMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected