delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/26/15:54:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FROM_STARTS_WITH_NUMS,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
X-Received: by 10.60.24.201 with SMTP id w9mr7841556oef.73.1359233623447; Sat, 26 Jan 2013 12:53:43 -0800 (PST)
From: "JJ" <1301mail AT gmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: email to gmail using /usr/bin/email
Date: Sat, 26 Jan 2013 14:53:46 -0600
Message-ID: <000601cdfc07$3caa3250$b5fe96f0$@gmail.com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r0QKs05j026143

I have spent several hours looking for tips on using the email binary in
Cygwin to send email via Gmail from the command line.  The man page and help
output don’t seem to clarify this.  I seem to be timing out or not
connecting to the gmail smtp server, but I don’t get any errors from email,
even with the –V flag.  It just hangs at:

Connecting to server smtp.gmail.com on port 465
Greeting the SMTP server...
...
Here is the command I am using in my script.  This worked fine when I used
another ISP, but gmail is pickier.

email -r smtp.gmail.com -f <user>@gmail.com -n me -s "backup for %DATE%" -a
d:\backup.log <sameuser>@gmail.com

I ran email-config and specified my userid, password, smtp server, port
number, and to use TLS.  I have also specified the port and used the tls
flag in the command line.  Sending email from outlook on the same computer
works fine.

Any documentation on email with SSL or tips on alternatives would be greatly
appreciated.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019