Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: Setting up mail
Date: Fri, 05 Nov 2004 14:48:59 +0900	[thread overview]
Message-ID: <b9y3bzoong4.fsf@jpl.org> (raw)
In-Reply-To: <cmbgat$h6e$1@sea.gmane.org>

>>>>> In <cmbgat$h6e$1@sea.gmane.org> Trey Sizemore wrote:

> I have a seemingly elementary question that I can't seem to find an answer
> to.  I'm getting into using Emacs (ideally exclusively for things like
> editing, email, newsgroups, etc.).  I've gotten gnus to display articles
>>From a newsgroup server and I've been going through the manual learing how
> to mark, score, etc.  However, I don't seem to be able to post or mail from
> gnus.  The default is set to use sendmail as the agent (which I thought was
> working on my system) but no mail goes out.  So I'd like to change it to
> use my ISP's smtp server

You can find how to change the way to send mails in the Gnus manual.
M-x info RET d m Gnus RET m Posting Server RET:

--8<---------------cut here---------------start------------->8---
   When sending mail, Message invokes `message-send-mail-function'.
The default function, `message-send-mail-with-sendmail', pipes your
article to the `sendmail' binary for further queuing and sending.  When
your local system is not configured for sending mail using `sendmail',
and you have access to a remote SMTP server, you can set
`message-send-mail-function' to `smtpmail-send-it' and make sure to
setup the `smtpmail' package correctly.  An example:

     (setq message-send-mail-function 'smtpmail-send-it
           smtpmail-default-smtp-server "YOUR SMTP HOST")
--8<---------------cut here---------------end--------------->8---

You will also need to see the smtpmail.el file.  In order to
know where it is, type the following:

M-x locate-library RET smtpmail.el RET

> and was not sure about the syntax and where to put
> it (I don't currently have a ~/.gnus file (using SUSE) but I do have a
> ~/.gnu-emacs file.  Do I need to create a .gnus file?

> Thanks for the assistance.

I recommend you use the ~/.gnus.el file rather than the ~/.gnus
file.  Anyway, that file is essential to use Gnus, I think.  It
is used to customize most Gnus features including the method for
reading and posting news.  Here's an example which you should
put into the ~/.gnus.el file in order to use the smtpmail package.

(setq message-send-mail-function 'smtpmail-send-it)

You will also need to put the following lines in the ~/.emacs
file.  The reason it is not ~/.gnus.el but ~/.emacs is that
smtpmail is not only for Gnus.

(setq smtpmail-default-smtp-server "YOUR SMTP HOST")
(setq smtpmail-local-domain "YOUR DOMAIN NAME")
(setq smtpmail-sendto-domain "YOUR DOMAIN NAME")

Where "YOUR SMTP HOST" and "YOUR DOMAIN NAME" should be replaced
with proper ones.



      reply	other threads:[~2004-11-05  5:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-03 20:49 Trey Sizemore
2004-11-05  5:48 ` Katsumi Yamaoka [this message]

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=b9y3bzoong4.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.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).