This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Looking for a substitute to /usr/bin/mail


Patrick Samson <p_samson@yahoo.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@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@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]