unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pawel <null7@wp.pl>
Subject: multiple smtp servers depending on recipient
Date: Fri, 10 Mar 2006 13:43:25 +0100	[thread overview]
Message-ID: <17425.29805.875142.954096@gargle.gargle.HOWL> (raw)


Hallo
when sending emails I want emacs choose different smtp servers based on recipient address.
I imagine that this action should be hooked to mail-send-hook to make it performed automatically.
email address matching would probably be done based on regular expressions.

the only thing user would have to configure would be:

(setq alist-smtp-servers
      '(
	(".*@my.company.com" . ( company smtp server details ))
	(".*@my.school.com" . ( school smtp server details ))
	(".*" . ( general smtp server details ))
	))

I am planning to do such thing, but maybe there is a ready to use solution.

If not, what way would You suggest me to go.

I think I have to dive into sendmail.el file, because I expect there will be a lot of methods I need.

Greetings

             reply	other threads:[~2006-03-10 12:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-10 12:43 Pawel [this message]
     [not found] <mailman.173.1141994586.2832.help-gnu-emacs@gnu.org>
2006-03-10 13:32 ` multiple smtp servers depending on recipient Gordon Beaton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17425.29805.875142.954096@gargle.gargle.HOWL \
    --to=null7@wp.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).