I installed Cygwin in Windows Vista with the gnutls package and XEmacs, along with the Sumo package tarball (also from cygwin sources). I cannot send mail from either vm or the default mail mode in XEmacs. Relevant portion of my .vm file:
Code:
(setq starttls-use-gnutls t)
(setq send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
smtpmail-starttls-credentials
'(("smtp.gmail.com" 587 nil nil))
smtpmail-auth-credentials
(expand-file-name "~/.authinfo")
smtpmail-default-smtp-server "smtp.gmail.com"
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587
smtpmail-debug-info t)
(require 'smtpmail)
I've also added this to my site-start.el (in the cygwin directories, I placed this file in /usr/share/xemacs/xemacs-packages/lisp):
Code:
;; Extracted from byte-run.el in GNU Emacs.
(defun with-no-warnings (&rest body)
"Like `progn', but prevents compiler warnings in the body."
;; The implementation for the interpreter is basically trivial.
(car (last body)))
When I send mail my trace from emacs says:
Code:
220 mx.google.com ESMTP c1sm252775ana.20
EHLO Redscare-laptop
250-mx.google.com at your service, [84.23.49.89]
250-SIZE 35651584
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
MAIL FROM:<redscare@gmail.com> SIZE=367
530 5.7.0 Must issue a STARTTLS command first. c1sm252775ana.20
QUIT
221 2.0.0 closing connection c1sm252775ana.20
Process SMTP exited abnormally with code 256
Thank you in advance.