Lines Matching full:auth
8 // AUTH RFC 2554
42 // supported auth mechanisms
43 auth []string
143 if mechs, ok := ext["AUTH"]; ok {
144 c.auth = strings.Split(mechs, " ")
189 // Auth authenticates a client using the provided authentication mechanism.
191 // Only servers that advertise the AUTH extension support this function.
192 func (c *Client) Auth(a Auth) error {
197 mech, resp, err := a.Start(&ServerInfo{c.serverName, c.tls, c.auth})
204 code, msg64, err := c.cmd(0, strings.TrimSpace(fmt.Sprintf("AUTH %s %s", mech, resp64)))
220 // abort the AUTH
306 func SendMail(addr string, a Auth, from string, to []string, msg []byte) error {
325 if _, ok := c.ext["AUTH"]; ok {
326 if err = c.Auth(a); err != nil {