email to gmail using /usr/bin/email
René Berber
r.berber@computer.org
Sat Jan 26 23:32:00 GMT 2013
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
More information about the Cygwin
mailing list