Subject: bug#19804: 24.4; Cannot send mail with gmail smtp in 24.4

From: [email-masked] (Tory S. Anderson)
Date: Sat, 07 Feb 2015 11:14:42 -0500

C-x m
test message from a gmail address
C-c c

It asks for an smtp server; I use smtp.gmail.com. It then freezes. After eventual c-g it gives me the message, 

smtpmail-send-it: Sending failed: 530 5.7.0 Must issue a STARTTLS
command first. a91sm2731961yhq.17 - gsmtp

However, I am able to get it working for my self-hosted email address (not gmail)

In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9)
 of 2015-02-07 on localhost.localdomain
Windowing system distributor `Fedora Project', version 11.0.11404000
System Description:	Fedora release 20 (Heisenbug)

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Message

Minor modes in effect:
  mml-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  auto-fill-function: message-do-auto-fill
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
C-x m t o r y s . a n d e r s o n @ g m a i l . c o 
m <tab> C-n B a r e - b o n e s SPC f r o m SPC l i 
n g a <backspace> <backspace> <backspace> <backspace> 
<backspace> g n <backspace> m a i l M-> O n c e SPC 
a g a i n SPC t r y SPC t o SPC s e n d SPC w i t h 
SPC g m a i l C-c C-g C-p C-p C-a C-k l i n g u a i 
n <backspace> <backspace> . i n f i n i t u m @ g m 
a i l . c o m M-> C-c C-c s m t p <return> s m t p 
. g m a i l 2 . c o m <return> C-c C-k y e s C-g M-x 
b u g SPC r e p o r t <tab> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <tab> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
s u b m i t - b u g <tab> <backspace> <backspace> <backspace> 
<tab> <tab> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> b u g <tab> <tab> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> C-g 
M-x r e p o r t - e m a <tab> <return>

Recent messages:
Sending...
Mark set [2 times]
Sending via mail...
Setting `send-mail-function' temporarily since "emacs -q" would overwrite customizations
Setting `smtpmail-smtp-server' temporarily since "emacs -q" would overwrite customizations
Setting `smtpmail-smtp-service' temporarily since "emacs -q" would overwrite customizations
smtpmail-send-it: Sending failed: 530 5.7.0 Must issue a STARTTLS command first. a91sm2731961yhq.17 - gsmtp
Quit
delete-backward-char: Text is read-only
Making completion list...
Quit

Load-path shadows:
None found.

Features:
(shadow emacsbug help-mode network-stream starttls tls mailalias
smtpmail auth-source eieio byte-opt bytecomp byte-compile cconv
eieio-core password-cache cus-edit cus-start cus-load wid-edit
cl-loaddefs cl-lib sendmail mail-extr sort gnus-util message format-spec
rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr
mailabbrev mail-utils gmm-utils mailheader time-date tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 102227 9513)
 (symbols 48 20596 0)
 (miscs 40 53 221)
 (strings 32 17248 4669)
 (string-bytes 1 489985)
 (vectors 16 12367)
 (vector-slots 8 413748 6115)
 (floats 8 78 208)
 (intervals 56 296 0)
 (buffers 960 14)
 (heap 1024 31994 903))