[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: changing smtp server?
From: |
someusernamehere |
Subject: |
Re: changing smtp server? |
Date: |
Fri, 10 Aug 2007 18:22:27 -0000 |
User-agent: |
G2/1.0 |
On 10 ago, 13:06, a...@koldfront.dk (Adam Sjøgren) wrote:
> On Fri, 10 Aug 2007 17:59:14 -0000, someusernamehere wrote:
> >> If you must use an email-adress that isn't yours, use the .invalid
> >> top-level domain.
> > What is this??
>
> <http://www.ietf.org/rfc/rfc2606.txt>
>
> >> See (Info-goto-node "(Gnus)Posting Styles") or
> >> <http://gnus.org/manual/gnus_139.html#SEC139> for the details.
> > Which I mean is about the function posted by my, what/how indicate
> > that the invalid from ( invalid-f...@foo.bar or whatever) must send
> > mail across newsserver
>
> I do not understand your question this time around.
>
> You want to specify a from-address that will be used when you write a
> news-article, right?
>
Nope, I have now configured these in posting styles, which I want is:
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 "f...@bar.org" from)
;; Use stmp-auth
(message "Using smtp-auth")
;; Sending mail
((....................
....................))
((string-match "f...@bar2.org" 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 fuck-s...@foo.com, 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