delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/14/05:41:14

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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Andrew Markebo <andrew DOT markebo AT telia DOT com>
Subject: Re: How to use ssmtp ?
Date: Fri, 14 Mar 2003 11:40:59 +0100
Lines: 39
Message-ID: <m3u1e6gric.fsf@telia.com>
References: <3E709153 DOT ADF922AB AT swipnet DOT se> <Pine DOT LNX DOT 4 DOT 44 DOT 0303131528080 DOT 13904-100000 AT localhost DOT localdomain>
<20030313143354 DOT GC15611 AT pentek DOT com>
<20030313144102 DOT GK27047 AT cygbert DOT vinschen DOT de>
<3E719C4E DOT 17017359 AT swipnet DOT se> <20030314091435 DOT GG2032 AT nbof>
<3E71AA90 DOT BFE9BAAC AT swipnet DOT se>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2
Cancel-Lock: sha1:U8wdtK2mhJxt3bGJYks2Bsr9fY0=

/ a12 <a12 AT swipnet DOT se> wrote:
| Olaf,
|
| Thank you for your hint.
|
| echo test|ssmtp -s test recipient AT domain DOT com
| does send a mail.
|
| The From: field contains 'sys [sys AT mail DOT xyz DOT com]'. As I want to
| contains it 'sys AT rrback', I enter:
| echo test|ssmtp -fsys AT rrback -s test recipient AT domain DOT com
| and it works as expected.
|
| The To: field is empty. How do I set it ?
| The Subject: field is empty. How do I set it ?

You put To: and Subject: as the first lines of what you send in to
ssmtp, and have one empty line to the body. Like:

-----------------------
To: someone AT somewhere
Subject: Testing

Here comes the message
-------------------------

| How do I send a file ?

One easy way, "uuencode file | ssmtp", my way, I use uuenview to take
care of the encoding, formatting and so on.

I think.. :-)

The manpage contains an example or two.. 

    /Andy

-- 
 The eye of the beholder rests on the beauty!


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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