From: someusernamehere <someusernamehere@gmail.com>
To: info-gnus-english@gnu.org
Subject: changing smtp server?
Date: Fri, 10 Aug 2007 17:28:29 -0000 [thread overview]
Message-ID: <1186766909.181558.293260@z24g2000prh.googlegroups.com> (raw)
Hey I have this on my .gnus file:
;; function that change between smtp servers
(defun fs-change-smtp ()
"Change the SMTP server according to the current from line."
(save-excursion
(let ((from
(save-restriction
(message-narrow-to-headers)
(message-fetch-field "from"))))
(message "From is `%s', setting `smtpmail-smtp-server' to `%s'"
from
(cond
((string-match "foo@bar.org" from)
;; Use stmp-auth
(message "Using smtp-auth")
;; Sending mail
((....................
....................))
;; Use other server
(message "Using other server")
((.......................
.......................))
(t
(error
(concat "Don't know which mail server to use for
"
from))))))))
; (add-hook 'message-setup-hook 'fs-change-smtp)
next reply other threads:[~2007-08-10 17:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 17:28 someusernamehere [this message]
2007-08-10 17:31 someusernamehere
2007-08-10 17:54 ` Adam Sjøgren
2007-08-10 17:59 ` someusernamehere
2007-08-10 18:06 ` Adam Sjøgren
2007-08-10 18:22 ` someusernamehere
2007-08-10 19:02 ` Adam Sjøgren
2007-08-10 19:37 ` Tassilo Horn
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1186766909.181558.293260@z24g2000prh.googlegroups.com \
--to=someusernamehere@gmail.com \
--cc=info-gnus-english@gnu.org \
/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 NNTP newsgroup(s).