Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: Posting through a different mail server
       [not found] <874r9brnsy.fsf@nomensa.com>
@ 2002-12-19  7:43 ` Kai Großjohann
  2002-12-19 13:08   ` Jonathan Shipley
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Großjohann @ 2002-12-19  7:43 UTC (permalink / raw)


Jonathan Shipley <js@nomensa.com> writes:

> Can anyone tell me how me to get a prompt to send mail to a different
> server to the default one?

See the variable message-send-mail-function and also the beginning of
the file smtpmail.el (which comes with Emacs).

If you configure Gnus to use smtpmail.el (ie, by setting
message-send-mail-function correctly, as described in smtpmail.el),
then you can frob the smtpmail variables to choose the server to send
to.

C-u 0 C-c C-c chooses a _Gnus_ server instead of a mail server.  It's
only useful for posting, not for sending mail.

-- 
~/.signature is: umop ap!sdn    (Frank Nobis)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Posting through a different mail server
  2002-12-19  7:43 ` Posting through a different mail server Kai Großjohann
@ 2002-12-19 13:08   ` Jonathan Shipley
       [not found]     ` <84heda3wu5.fsf@lucy.cs.uni-dortmund.de>
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Shipley @ 2002-12-19 13:08 UTC (permalink / raw)


kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:


> If you configure Gnus to use smtpmail.el (ie, by setting
> message-send-mail-function correctly, as described in smtpmail.el),
> then you can frob the smtpmail variables to choose the server to send
> to.

This is my current setup. So frob in this case means change the variable
to the desired server, send the mail and then reset the variable. As
this is only a one-off this is not a problem, but it seems odd not to
use C-u 0 C-c C-c method if I am already sending through smtpmail-send-it.

I suppose that if I was in a particular group I could automatically set
the variable.

> C-u 0 C-c C-c chooses a _Gnus_ server instead of a mail server.  It's
> only useful for posting, not for sending mail.

Thank you for the lesson.


-- 
Jonathan 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Posting through a different mail server
       [not found]       ` <87heda6jbh.fsf@nomensa.com>
@ 2002-12-20 15:03         ` Kai Großjohann
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Großjohann @ 2002-12-20 15:03 UTC (permalink / raw)


Jonathan Shipley <js@nomensa.com> writes:

> kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:
>
>
>> What happens if you M-: (make-local-variable 'smtpmail-FOO) RET, then
>> M-: (setq smtpmail-FOO "other-server") RET, then C-c C-c?
>> 
>> If that works, then a function to choose the server for this message
>> might work.
>> 
>
> It went to the default server. Is there an impicit step I have missed
> out? I don't see why /just/ setting a local variable would override the
> default mail server. But then again, you're the lisp expert!
>
> Of course, I took your instructions literally, including the FOO.

I forgot the name of the variable, that's why I used FOO.  I suggest
that you try this:

M-: (make-local-variable 'smtpmail-smtp-server) RET
M-: (setq smtpmail-smtp-server "other-server") RET

You could also try smtpmail-default-smtp-server instead of
smtpmail-smtp-server.

Please put in the right server name instead of other-server.

-- 
~/.signature is: umop ap!sdn    (Frank Nobis)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-20 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <874r9brnsy.fsf@nomensa.com>
2002-12-19  7:43 ` Posting through a different mail server Kai Großjohann
2002-12-19 13:08   ` Jonathan Shipley
     [not found]     ` <84heda3wu5.fsf@lucy.cs.uni-dortmund.de>
     [not found]       ` <87heda6jbh.fsf@nomensa.com>
2002-12-20 15:03         ` Kai Großjohann

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).