Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: sending mail
       [not found] <mailman.17012.1394593516.10748.info-gnus-english@gnu.org>
@ 2014-03-14  0:03 ` N. Jackson
  2014-03-14  2:48   ` Steven Arntson
  0 siblings, 1 reply; 3+ messages in thread
From: N. Jackson @ 2014-03-14  0:03 UTC (permalink / raw)
  To: info-gnus-english

At 23:58 -0300 on Tuesday 2014-03-11, Steven Arntson wrote:

> I'm a beginning user of gnus, trying to use it to send emails, with the
> command "m." I compose, and then send with C-c C-c, and it looks like
> it's working, but then the system hangs and times out.

I'm a beginning user of Gnus too, but I do have a couple of ideas about
what might be wrong with your set up.

> ;; My Gnus init
>
> (setq gnus-select-method '(nntp "news.gwene.org"))
> (add-to-list 'gnus-secondary-select-methods '(nnml ""))
> (add-to-list 'gnus-secondary-select-methods
>                   '(nnmbox ""
>                     (nnmbox-mbox-file "~/MAIL")
>                     (nnmbox-active-file "~/Mail.active")))
> (setq mail-sources '((pop :server "my.usual-server.com" :user "me@mydomain.com")))
>
> (setq send-mail-function 'smtpmail-send-it)
> (setq message-send-mail-function 'smtpmail-send-it)
> (setq smtpmail-default-smtp-server "my.usual-server.com") ; needs to be specified before the (require)
>  (require 'smtpmail)
>  (setq smtpmail-local-domain "mydomain.com")
>  (setq smtpmail-sendto-domain "mydomain.com")
>  (setq user-full-name "My Name")
>  (setq user-mail-address (concat "me@" smtpmail-local-domain))
>  (setq smtpmail-debug-info t) ; only to debug problems

I don't see you telling smtpmail which user account to log in
with. Also, if the SMTP server is on a port other than 25, then I think
you have to specify that too.

On the other hand, maybe it can get that information from your
.authinfo file -- I still haven't figured that out. My password is
certainly being retreived from my .authinfo file, so I don't really see
why everything can't be retrieved from there at the same time!

FWIw, I have this:

(setq message-send-mail-function 'smtpmail-send-it
      smtpmail-smtp-server "smtp.gmail.com"
      smtpmail-default-smtp-server "smtp.gmail.com"
      smtpmail-smtp-service 587                     ; TCP Port.
      smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
      smtpmail-auth-credentials '(("smtp.gmail.com" 587 "my_user_name@gmail.com" nil))
)

I don't seem to need a (require 'sendmail).

For the TLS, I have this:

(setq starttls-use-gnutls t
      starttls-gnutls-program "gnutls-cli"
)

I hope some of this helps!

N.

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

* Re: sending mail
  2014-03-14  0:03 ` sending mail N. Jackson
@ 2014-03-14  2:48   ` Steven Arntson
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Arntson @ 2014-03-14  2:48 UTC (permalink / raw)
  To: info-gnus-english

Thanks so much for this. I copied the init lines you provided and replaced with my specs, kept a few
lines of my original, and presto, I successfully sent an email. I don't know why it
works yet, but it does work, which is my Gnus Victory for today!

best,
steven

nljlistbox2@gmail.com (N. Jackson) writes:

> At 23:58 -0300 on Tuesday 2014-03-11, Steven Arntson wrote:
>
>> I'm a beginning user of gnus, trying to use it to send emails, with the
>> command "m." I compose, and then send with C-c C-c, and it looks like
>> it's working, but then the system hangs and times out.
>
> I'm a beginning user of Gnus too, but I do have a couple of ideas about
> what might be wrong with your set up.
>
>> ;; My Gnus init
>>
>> (setq gnus-select-method '(nntp "news.gwene.org"))
>> (add-to-list 'gnus-secondary-select-methods '(nnml ""))
>> (add-to-list 'gnus-secondary-select-methods
>>                   '(nnmbox ""
>>                     (nnmbox-mbox-file "~/MAIL")
>>                     (nnmbox-active-file "~/Mail.active")))
>> (setq mail-sources '((pop :server "my.usual-server.com" :user "me@mydomain.com")))
>>
>> (setq send-mail-function 'smtpmail-send-it)
>> (setq message-send-mail-function 'smtpmail-send-it)
>> (setq smtpmail-default-smtp-server "my.usual-server.com") ; needs to be specified before the (require)
>>  (require 'smtpmail)
>>  (setq smtpmail-local-domain "mydomain.com")
>>  (setq smtpmail-sendto-domain "mydomain.com")
>>  (setq user-full-name "My Name")
>>  (setq user-mail-address (concat "me@" smtpmail-local-domain))
>>  (setq smtpmail-debug-info t) ; only to debug problems
>
> I don't see you telling smtpmail which user account to log in
> with. Also, if the SMTP server is on a port other than 25, then I think
> you have to specify that too.
>
> On the other hand, maybe it can get that information from your
> .authinfo file -- I still haven't figured that out. My password is
> certainly being retreived from my .authinfo file, so I don't really see
> why everything can't be retrieved from there at the same time!
>
> FWIw, I have this:
>
> (setq message-send-mail-function 'smtpmail-send-it
>       smtpmail-smtp-server "smtp.gmail.com"
>       smtpmail-default-smtp-server "smtp.gmail.com"
>       smtpmail-smtp-service 587                     ; TCP Port.
>       smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
>       smtpmail-auth-credentials '(("smtp.gmail.com" 587 "my_user_name@gmail.com" nil))
> )
>
> I don't seem to need a (require 'sendmail).
>
> For the TLS, I have this:
>
> (setq starttls-use-gnutls t
>       starttls-gnutls-program "gnutls-cli"
> )
>
> I hope some of this helps!
>
> N.

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

* sending mail
@ 2014-03-12  2:58 Steven Arntson
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Arntson @ 2014-03-12  2:58 UTC (permalink / raw)
  To: info-gnus-english

I'm a beginning user of gnus, trying to use it to send emails, with the
command "m." I compose, and then send with C-c C-c, and it looks like
it's working, but then the system hangs and times out. I don't know what
I'm doing, and am not too familiar with elisp beyond cutting and pasting
code from the emacswiki. I'd very much appreciate any help! Here's my
.gnus.el, anonymized:


;; My Gnus init

(setq gnus-select-method '(nntp "news.gwene.org"))
(add-to-list 'gnus-secondary-select-methods '(nnml ""))
(add-to-list 'gnus-secondary-select-methods
                  '(nnmbox ""
                    (nnmbox-mbox-file "~/MAIL")
                    (nnmbox-active-file "~/Mail.active")))
(setq mail-sources '((pop :server "my.usual-server.com" :user "me@mydomain.com")))

(setq send-mail-function 'smtpmail-send-it)
(setq message-send-mail-function 'smtpmail-send-it)
(setq smtpmail-default-smtp-server "my.usual-server.com") ; needs to be specified before the (require)
 (require 'smtpmail)
 (setq smtpmail-local-domain "mydomain.com")
 (setq smtpmail-sendto-domain "mydomain.com")
 (setq user-full-name "My Name")
 (setq user-mail-address (concat "me@" smtpmail-local-domain))
 (setq smtpmail-debug-info t) ; only to debug problems

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

end of thread, other threads:[~2014-03-14  2:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.17012.1394593516.10748.info-gnus-english@gnu.org>
2014-03-14  0:03 ` sending mail N. Jackson
2014-03-14  2:48   ` Steven Arntson
2014-03-12  2:58 Steven Arntson

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