delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/26/18:32:53

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=BAYES_00,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?windows-1252?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: email to gmail using /usr/bin/email
Date: Sat, 26 Jan 2013 17:32:11 -0600
Lines: 32
Message-ID: <ke1p21$gjj$1@ger.gmane.org>
References: <000601cdfc07$3caa3250$b5fe96f0$@gmail.com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0
In-Reply-To: <000601cdfc07$3caa3250$b5fe96f0$@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 1/26/2013 2:53 PM, JJ wrote:
> 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

Wrong port.

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

With the same settings? I doubt it.

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

Read the help pages on Gmail.
-- 
René Berber


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