| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| To: | cygwin AT cygwin DOT com |
| From: | Robert R Schneck <schneck AT math DOT berkeley DOT edu> |
| Subject: | Re: Looking for a substitute to /usr/bin/mail |
| Date: | Sat, 6 Mar 2004 12:53:31 +0000 (UTC) |
| Lines: | 21 |
| Message-ID: | <c2chkb$m19$1@sea.gmane.org> |
| References: | <20040305101940 DOT 84765 DOT qmail AT web60304 DOT mail DOT yahoo DOT com> |
| X-Complaints-To: | usenet AT sea DOT gmane DOT org |
| X-Gmane-NNTP-Posting-Host: | 80.45.128.116 |
| User-Agent: | slrn/0.9.8.0 (CYGWIN_NT-5.1) |
Patrick Samson <p_samson AT yahoo DOT com> wrote: > I use a product which uses the command 'mail'. > I didn't find any /usr/bin/mail.exe in any > available package. > Does it mean that one have to install an email > package and do a cp or ln to the email client? > > The product just needs to do something like: > echo "$msg" | mail user AT domain -s "$s" > > Amongst mutt, ssmtp, exim, pine, ... is there a best > equivalent to the conventional Unix mail command? You need ssmtp or exim to actually handle the sending of the mail. "mail" in this case could be emulated with a sccript to create a header with "user AT domain" in the To: field, "$s" in the Subject field, put in a blank line, and use "$msg" as the mail body; and then send the whole thing on to sendmail (ssmtp or exim). Probably either exim or mutt-with-ssmtp could do this for you. Robert -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |