Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples of smtpmail-multi-accounts and smtpmail-multi-associations config? #4

Open
dbitouze opened this issue Oct 23, 2016 · 1 comment

Comments

@dbitouze
Copy link

dbitouze commented Oct 23, 2016

The documentations of the variables:

  • smtpmail-multi-accounts:

List of SMTP mail accounts.
Each element should be a cons cell whose first element is a symbol label for the account,
and whose second element is a list containing the following items in order:
Username - the value to use for ‘smtpmail-smtp-user’ (which see)
Server - the value to use for ‘smtpmail-smtp-server’
Port - the value to use for ‘smtpmail-smtp-service’
MAIL FROM - if non-nil then ‘mail-specify-envelope-from’ will be set to t,
and ‘mail-envelope-from’ will be set to this value (either a mail
address string, or the symbol ’header).
Stream type - the value to use for ‘smtpmail-stream-type’
STARTTLS key - location of client key to use for STARTTLS authentication, or nil if none used
(this is used to set the ‘smtpmail-starttls-credentials’ variable)
STARTTLS certificate - location of certificate to use for STARTTLS authentication, or nil if none used
(this is used to set the ‘smtpmail-starttls-credentials’ variable)
Local hostname - the value to use for ‘smtpmail-local-domain’.

  • smtpmail-multi-associations:

    The first element of each item in the list is used to indicate whether the mail matches this the item or not.
    It can be either a string to match the "From" header, a cons cell whose car is a header name and whose cdr
    is a string to match that header, or a function to be called from within the mail buffer and which should return
    true if the mail matches.
    The subsequent elements of the list item are symbols indicating which smtp accounts to try (see ‘smtpmail-multi-accounts’).
    These different smtp accounts will be tried sequentially until the mail is successfully sent.

are a bit meaningless (at least for me). Would it be possible to provide examples?

@ghost
Copy link

ghost commented Jul 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant