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?= Subject: Re: email to gmail using /usr/bin/email Date: Sat, 26 Jan 2013 17:32:11 -0600 Lines: 32 Message-ID: References: <000601cdfc07$3caa3250$b5fe96f0$@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 @gmail.com -n me -s "backup for %DATE%" -a > d:\backup.log @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