delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/29/10:55:31

X-Recipient: archive-cygwin AT delorie DOT 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 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
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 AT pavlovmedia DOT com>
To: Marilo <narium85-mlscar AT yahoo DOT co DOT uk>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT 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 DOT 65788 DOT YahooMailNeo AT web172501 DOT mail DOT ir2 DOT yahoo DOT com>
In-Reply-To: <1411924846.65788.YahooMailNeo@web172501.mail.ir2.yahoo.com>
MIME-Version: 1.0
X-IsSubscribed: yes
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 AT myemail DOT 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 AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Marilo
Sent: Sunday, September 28, 2014 12:21 PM
To: cygwin AT cygwin DOT 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


- Raw text -


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