[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's needed in .emacs on w32 build to send bug report thru the *ma
Re: What's needed in .emacs on w32 build to send bug report thru the *mail-to- address@hidden* buffer
Fri, 02 Nov 2012 18:03:31 -0400
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
"B. T. Raven" <firstname.lastname@example.org> writes:
> Thanks, William. I will reread that info section before I try to mail
> through Emacs again. I'm sure that the port assignment is at least part
> of the problem. My Tbird client is using port 995 on pop.gmail.com
> server for TLS and 465 for outgoing smtp. This is the relevant section
> in .emacs:
> (setq smtpmail-default-smtp-server "smtp.gmail.com")
> (setq smtpmail-local-domain "gmail.com") ;; was nil ???
> (setq send-mail-function 'smtpmail-send-it)
> (setq smtpmail-smtp-service 465) ;;; port assigned in Tbird outgoing ;;;
> server (smtp)
> (load-library "smtpmail")
`smtpmail-local-domain' does not need to be set. (you do, however, need
to set `smtpmail-smtp-server'.
> (setenv "MAILHOST" "pop.gmail.com")
> ;;; ^^ the above doesn't seem to change the w64 env as revealed by the
> set command or in Control Panel > System
That setting is not exported to your w64 environment. It should be
exported to anything run under Emacs, however.
> My isp uses gmail for spam filtering and my normal email is not a
> ...@gmail.com but one from my isp. If I wanted to point to port 995
> instead of 25, where would that go in my .emacs?
The exact line for the pop setting would depend on what mail client
you're using (Rmail, Gnus, Mew, Wanderlust, etc.). smtpmail.el only
handles the outgoing end of things; it's modular and can be used with
many different Elisp programs for *reading* the mail.
> I thought mta's were like postfix, exim, etc.
Yes, those are big sophisticated MTAs. There are also simpler examples,
such as msmtp, nullmailer, etc. that are strictly to forward outgoing
messages to an SMTP server. For submission of outgoing mail, MTAs of
both kinds provide a replacement for the (now deprecated) "sendmail"
program, which is what I was talking about there. Emacs can leverage
that, just as other mailers like Mutt do.
> I tried to get gnus working quite a while ago but gave up due to the
> steep learning curve. I still have this Gnu's relevant stuff in my
> .emacs but unfortunately I don't understand it (especially where
> load-library should be called):
> (setq gnus-posting-styles
> (address "email@example.com") ;; bogus address
> (name "B.T. Raven"))
> (address "firstname.lastname@example.org")
> (name "Ed C.")) ) )
> (setq user-full-name "Ed C.")
> (setq user-mail-address "email@example.com")
> (setq rmail-primary-inbox-list
> '("firstname.lastname@example.org") rmail-pop-password-required t)
> (setq gnus-check-new-newsgroups nil)
> (load-library "message")
> (setq message-send-mail-function 'smtpmail-send-it)
This snippet is a somewhat confusing hybrid of setting up Rmail and
setting up Gnus. It doesn't look quite complete for either. :)
The placement of the library load for message is not especially
important. In fact, here (Gnus 5.13/Emacs 24.2.1 on Debian GNU/Linux),
I never explicitly load message in my .emacs. (It does already have
some autoloads in your site init file, since message is part of the
default Emacs distribution).
For a setup like this, using POP, you might look at this as a basis and
make modifications to your local setup as needed:
Hope this clarifies some things,
I use grml (http://grml.org/)