Function: smtpmail-try-auth-method

smtpmail-try-auth-method is a byte-compiled function defined in smtpmail.el.gz.

Signature

(smtpmail-try-auth-method PROCESS MECH USER PASSWORD)

Documentation

Perform authentication of type MECH for USER with PASSWORD.

MECH should be one of the values in smtpmail-auth-supported. USER and PASSWORD should be non-nil.

Probably introduced at or before Emacs version 27.1.

Implementations

(smtpmail-try-auth-method PROCESS (MECH (eql 'xoauth2)) USER PASSWORD) in `smtpmail.el'.

Undocumented

(smtpmail-try-auth-method PROCESS (MECH (eql 'plain)) USER PASSWORD) in `smtpmail.el'.

Undocumented

(smtpmail-try-auth-method PROCESS (MECH (eql 'login)) USER PASSWORD) in `smtpmail.el'.

Undocumented

(smtpmail-try-auth-method PROCESS (MECH (eql 'cram-md5)) USER PASSWORD) in `smtpmail.el'.

Undocumented

(smtpmail-try-auth-method PROCESS MECH USER PASSWORD) in `smtpmail.el'.

Undocumented

Source Code

;; Defined in /usr/src/emacs/lisp/mail/smtpmail.el.gz
(cl-defgeneric smtpmail-try-auth-method (_process mech _user _password)
  "Perform authentication of type MECH for USER with PASSWORD.
MECH should be one of the values in `smtpmail-auth-supported'.
USER and PASSWORD should be non-nil."
  (error "Mechanism %S not implemented" mech))