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 "[EMAIL PROTECTED]" from)
;; Use stmp-auth
(message "Using smtp-auth")
;; Sending mail
((....................
....................))
((string-match "[EMAIL PROTECTED]" from)
;; 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)
For change among smtp servers depending the "from" header, but.....
what abou when I want to send News????, I want to send news with the
from [EMAIL PROTECTED], but this is not defined in the function fs-
change-smtp then I get an "Don't know which mail server to use for ",
how I can fix this?
thanks
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english