File: smtpmail.el.html

Send Mail to smtp host from smtpmail temp buffer.

Please add these lines in your .emacs(_emacs) or use customize.

(setq send-mail-function 'smtpmail-send-it) ; if you use mail
(setq message-send-mail-function 'smtpmail-send-it) ; if you use message/Gnus
(setq smtpmail-smtp-server "YOUR SMTP HOST")
(setq smtpmail-local-domain "YOUR DOMAIN NAME")
(setq smtpmail-sendto-domain "YOUR DOMAIN NAME")
(setq smtpmail-debug-info t) ; only to debug problems

To queue mail, set smtpmail-queue-mail to t and use smtpmail-send-queued-mail to send.

Modified by Stephen Cranefield <scranefield@infoscience.otago.ac.nz>,
22/6/99, to support SMTP Authentication by the AUTH=LOGIN mechanism.
See http://help.netscape.com/products/server/messaging/3x/info/smtpauth.html Rewritten by Simon Josefsson to use same credential variable as AUTH support below.

Modified by Simon Josefsson <jas@pdc.kth.se>, 22/2/99, to support SMTP Authentication by the AUTH mechanism. See https://www.ietf.org/rfc/rfc2554.txt

Defined variables (19)

smtpmail-auth-supportedList of supported SMTP AUTH mechanisms.
smtpmail-code-conv-fromCoding system for encoding outgoing mail.
smtpmail-debug-infoWhether to print info in buffer *trace of SMTP session to <somewhere>*.
smtpmail-debug-verbWhether this library sends the SMTP VERB command or not.
smtpmail-default-smtp-serverSpecify default SMTP server.
smtpmail-local-domainLocal domain name without a host name.
smtpmail-mail-addressValue to use for envelope-from address for mail from ambient buffer.
smtpmail-queue-dirDirectory where ‘smtpmail.el’ stores queued mail.
smtpmail-queue-index-fileFile name of queued mail index.
smtpmail-queue-mailNon-nil means mail is queued; otherwise it is sent immediately.
smtpmail-retriesThe number of times smtpmail will retry sending when getting transient errors.
smtpmail-sendto-domainLocal domain name without a host name.
smtpmail-servers-requiring-authorizationRegexp matching servers that require authorization.
smtpmail-smtp-serverThe name of the host running SMTP server.
smtpmail-smtp-serviceSMTP service port number.
smtpmail-smtp-userUser name to use when looking up credentials in the authinfo file.
smtpmail-store-queue-variablesIf non-nil, store SMTP variables when queueing mail.
smtpmail-stream-typeType of SMTP connections to use.
smtpmail-warn-about-unknown-extensionsIf set, print warnings about unknown SMTP extensions.

Defined functions (27)

smtpmail--sanitize-error-message(STRING)
smtpmail-command-or-throw(PROCESS STRING &optional CODE)
smtpmail-cred-cert(CRED)
smtpmail-cred-key(CRED)
smtpmail-cred-passwd(CRED)
smtpmail-cred-port(CRED)
smtpmail-cred-server(CRED)
smtpmail-cred-user(CRED)
smtpmail-deduce-address-list(SMTPMAIL-TEXT-BUFFER HEADER-START HEADER-END)
smtpmail-do-bcc(HEADER-END)
smtpmail-find-credentials(CRED SERVER PORT)
smtpmail-intersection(LIST1 LIST2)
smtpmail-maybe-append-domain(RECIPIENT)
smtpmail-ok-p(RESPONSE &optional CODE)
smtpmail-process-filter(PROCESS OUTPUT)
smtpmail-query-smtp-server()
smtpmail-read-response(PROCESS)
smtpmail-response-code(STRING)
smtpmail-response-text(RESPONSE)
smtpmail-send-command(PROCESS COMMAND)
smtpmail-send-data(PROCESS BUFFER)
smtpmail-send-data-1(PROCESS DATA)
smtpmail-send-queued-mail()
smtpmail-try-auth-method(PROCESS MECH USER PASSWORD)
smtpmail-try-auth-methods(PROCESS SUPPORTED-EXTENSIONS HOST PORT &optional ASK-FOR-PASSWORD)
smtpmail-user-mail-address()
smtpmail-via-smtp(RECIPIENT SMTPMAIL-TEXT-BUFFER &optional ASK-FOR-PASSWORD SEND-ATTEMPTS)

Defined faces (0)