How to use ssmtp ?

Andrew Markebo andrew.markebo@telia.com
Fri Mar 14 13:01:00 GMT 2003


/ a12 <a12@swipnet.se> wrote:
| Olaf,
|
| Thank you for your hint.
|
| echo test|ssmtp -s test recipient@domain.com
| does send a mail.
|
| The From: field contains 'sys [sys@mail.xyz.com]'. As I want to
| contains it 'sys@rrback', I enter:
| echo test|ssmtp -fsys@rrback -s test recipient@domain.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@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/



More information about the Cygwin mailing list