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

(process (mech (eql xoauth2)) user password) in `smtpmail.el'.

Undocumented

(process (mech (eql 'plain)) user password) in `smtpmail.el'.

Undocumented

(process (mech (eql 'login)) user password) in `smtpmail.el'.

Undocumented

(process (mech (eql 'cram-md5)) user password) in `smtpmail.el'.

Undocumented

(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))