X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=OCFyOtAnjH7TcAzEFm8ebXxfJ/DzJ
	FXyX/xlpEyI6y73BgaQpxopDQPBbx0f+s193U6w2LLomG4rfb0/M36LvNLcxrOSo
	7Jl6pmC60pAQKSBpL92Bezfm0YVxijy+lBngyVhYxGuylhsfg5cLNR6cG+bbb/7X
	/KvR2mU5ec5lVM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=hMi8Hpl5jfYwwJNXns05sjh4HKw=; b=YbY
	/AZ0N+4vq8kSH8jjqZ/o0beYcef5JyJ7QNwNCY8VwD7XmGu77CTymz2smtEhbBrs
	EOotBXWjJu8z5j3fGmA++DTzJfe//zg/mZnFm2OvYk9Uw4lM3GP7qd108mP5s/3J
	ZfEJ+AXwKGk22mu/GPIxQ9M3gpzu5nwmk9elPdbM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.5 required=5.0 tests=AWL,BAYES_05,MIME_BASE64_BLANKS,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2
X-HELO: MAIL.PAVLOVMEDIA.COM
From: "Joi L. Ellis" <jlellis@pavlovmedia.com>
To: Marilo <narium85-mlscar@yahoo.co.uk>,
        "cygwin@cygwin.com"	<cygwin@cygwin.com>
Subject: RE: command line smtp client / command line email?
Date: Mon, 29 Sep 2014 14:55:09 +0000
Message-ID: <603b1aca7fbe4e2c98b5444dfc2282b3@EX2013DAG-B.pavlovmedia.corp>
References: <1411924846.65788.YahooMailNeo@web172501.mail.ir2.yahoo.com>
In-Reply-To: <1411924846.65788.YahooMailNeo@web172501.mail.ir2.yahoo.com>
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id s8TEtSxP014684

Now that I'm at work, I've done some digging, and here's what I've found...

On my ancient Windows XP box running 32-bit Cygwin, I have a package installed that provides /usr/sbin/sendmail.exe as a symlink to /usr/sbin/ssmtp.exe, and a shell secript /usr/bin/mailx.sh that is a front-end for it.

I've been using these to send emails from cron, and from my own perl script, for several years and have never had any issues.  It even works from a shell script thusly:
 
  $ echo "This is the message body" | mailx.sh -s 'this is a test subject' jlellis@myemail.com 

And I get the email in my office inbox. (Obviously I've obfuscated my email address in the line above as an anti-spam measure.)


--
Joi Owen
System Administrator
Pavlov Media, Inc

-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of Marilo
Sent: Sunday, September 28, 2014 12:21 PM
To: cygwin@cygwin.com
Subject: command line smtp client / command line email?

what are my options for a command line smtp client in cygwin?

I'd want to specify smtp server and from address. I'd like TLS/SSL to be supported by the command

sendmail , doesn't look like it exists on cygwin and I know on *nix it shuts down any postfix server so I guess it mighttry to shut down any smtp server I have running.

heirloom mailx  looks good, but doesn't exist for cygwin.

I can't see anything for sending an email from/in cygwin

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


