RE: how to set "To:" and "Subject:" with ssmtp
Also, once 'ssmtp' has been set up properly, 'mutt' can be used like traditional UNIX 'mail'. It has been working for well over a year now (thanks to Corrina Vinschen). > -Original Message- > From: Polley Christopher W [mailto:PolleyChristopherW@;JohnDeere.com] > Sent: Tuesday, October 29, 2002 8:34 AM > To: [EMAIL PROTECTED] > Subject: RE: how to set "To:" and "Subject:" with ssmtp > > > You might also try formail, which is included in the procmail package. > > >From: Marcos Lorenzo > > > >I'm unable to fill some fields in mail header with ssmtp: > > > >When I run: > > > >marcos@MOZART ~$ echo "testing mail" | ssmtp -f > >administrador@mozart -F Administrador [EMAIL PROTECTED] > > > > > >I get the following: > > > ... > > > >Which is quite OK but I cannot see any option in ssmtp to > set the To or > >the Subject fields as with the From one. I searched the docs > >and read the > >manpage, but I didn't find any documentation on setting the > >fields Subject > >and To. > > > > > > > -- > 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/ > > -- 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/
RE: how to set "To:" and "Subject:" with ssmtp
You might also try formail, which is included in the procmail package. >From: Marcos Lorenzo > >I'm unable to fill some fields in mail header with ssmtp: > >When I run: > >marcos@MOZART ~$ echo "testing mail" | ssmtp -f >administrador@mozart -F Administrador [EMAIL PROTECTED] > > >I get the following: > ... > >Which is quite OK but I cannot see any option in ssmtp to set the To or >the Subject fields as with the From one. I searched the docs >and read the >manpage, but I didn't find any documentation on setting the >fields Subject >and To. > > -- 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/
Re: how to set "To:" and "Subject:" with ssmtp
I attached a small shell script which mimes the behaviour of the classic Unix' mail command using ssmtp. Most of the options are ignored but "To:" and "Subject:" at least work. Give it a try and type "mail --help" Frank-Michael Marcos Lorenzo wrote: I'm unable to fill some fields in mail header with ssmtp: When I run: marcos@MOZART ~$ echo "testing mail" | ssmtp -f administrador@mozart -F Administrador [EMAIL PROTECTED] I get the following: Received: from arpa.it.uc3m.es ([EMAIL PROTECTED] [163.117.139.120]) by varpa.it.uc3m.es (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id LAA27580; Tue, 29 Oct 2002 11:17:57 +0100 Received: from varpa.it.uc3m.es ([EMAIL PROTECTED] [163.117.139.253]) by arpa.it.uc3m.es (8.9.3/8.9.3) with ESMTP id LAA26700 for <[EMAIL PROTECTED]>; Tue, 29 Oct 2002 11:17:56 +0100 Received: from mozart.lab.it.uc3m.es (mozart.lab.it.uc3m.es [163.117.144.225]) by varpa.it.uc3m.es (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id LAA27512 for <[EMAIL PROTECTED]>; Tue, 29 Oct 2002 11:17:56 +0100 Message-Id: <[EMAIL PROTECTED]> Received: by mozart.lab.it.uc3m.es (sSMTP sendmail emulation); Tue, 29 Oct 2002 11:17:56 +0100 From: Administrador <[EMAIL PROTECTED]> Date: Tue, 29 Oct 2002 11:17:56 +0100 To: undisclosed-recipients:; X-Spam-Status: No, hits=-92.8 required=6.0 tests=FROM_LOCAL,FROM_NAME_NO_SPACES,UNDISC_RECIPS,SUBJ_MISSING, MSG_ID_ADDED_BY_MTA_2,AWL version=2.31 X-Spam-Level: testing mail Which is quite OK but I cannot see any option in ssmtp to set the To or the Subject fields as with the From one. I searched the docs and read the manpage, but I didn't find any documentation on setting the fields Subject and To. thx in advance, m4c. -- 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/ mail Description: application/java-applet -- 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/
Re: how to set "To:" and "Subject:" with ssmtp
Hi Marcos, items such as Date, Subject, To, Cc, From are part of the message data. You should consider to use a file for sending this data. Something like: Subject: hello To: Pete Hello Pete! Felix Marcos Lorenzo wrote: I'm unable to fill some fields in mail header with ssmtp: When I run: marcos@MOZART ~$ echo "testing mail" | ssmtp -f administrador@mozart -F Administrador [EMAIL PROTECTED] I get the following: Received: from arpa.it.uc3m.es ([EMAIL PROTECTED] [163.117.139.120]) by varpa.it.uc3m.es (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id LAA27580; Tue, 29 Oct 2002 11:17:57 +0100 Received: from varpa.it.uc3m.es ([EMAIL PROTECTED] [163.117.139.253]) by arpa.it.uc3m.es (8.9.3/8.9.3) with ESMTP id LAA26700 for <[EMAIL PROTECTED]>; Tue, 29 Oct 2002 11:17:56 +0100 Received: from mozart.lab.it.uc3m.es (mozart.lab.it.uc3m.es [163.117.144.225]) by varpa.it.uc3m.es (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id LAA27512 for <[EMAIL PROTECTED]>; Tue, 29 Oct 2002 11:17:56 +0100 Message-Id: <[EMAIL PROTECTED]> Received: by mozart.lab.it.uc3m.es (sSMTP sendmail emulation); Tue, 29 Oct 2002 11:17:56 +0100 From: Administrador <[EMAIL PROTECTED]> Date: Tue, 29 Oct 2002 11:17:56 +0100 To: undisclosed-recipients:; X-Spam-Status: No, hits=-92.8 required=6.0 tests=FROM_LOCAL,FROM_NAME_NO_SPACES,UNDISC_RECIPS,SUBJ_MISSING, MSG_ID_ADDED_BY_MTA_2,AWL version=2.31 X-Spam-Level: testing mail Which is quite OK but I cannot see any option in ssmtp to set the To or the Subject fields as with the From one. I searched the docs and read the manpage, but I didn't find any documentation on setting the fields Subject and To. thx in advance, m4c. -- 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/ -- ISION GmbH (http://www.ision.net/) Felix van Hove, Softwareentwicklung Harburger Schlossstrasse 1, D-21079 Hamburg fon: +49-40-77175-457, mobil: +49-171-6813513, fax: +49-40-77175-497 -- 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/
how to set "To:" and "Subject:" with ssmtp
I'm unable to fill some fields in mail header with ssmtp: When I run: marcos@MOZART ~$ echo "testing mail" | ssmtp -f administrador@mozart -F Administrador [EMAIL PROTECTED] I get the following: Received: from arpa.it.uc3m.es ([EMAIL PROTECTED] [163.117.139.120]) by varpa.it.uc3m.es (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id LAA27580; Tue, 29 Oct 2002 11:17:57 +0100 Received: from varpa.it.uc3m.es ([EMAIL PROTECTED] [163.117.139.253]) by arpa.it.uc3m.es (8.9.3/8.9.3) with ESMTP id LAA26700 for <[EMAIL PROTECTED]>; Tue, 29 Oct 2002 11:17:56 +0100 Received: from mozart.lab.it.uc3m.es (mozart.lab.it.uc3m.es [163.117.144.225]) by varpa.it.uc3m.es (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id LAA27512 for <[EMAIL PROTECTED]>; Tue, 29 Oct 2002 11:17:56 +0100 Message-Id: <[EMAIL PROTECTED]> Received: by mozart.lab.it.uc3m.es (sSMTP sendmail emulation); Tue, 29 Oct 2002 11:17:56 +0100 From: Administrador <[EMAIL PROTECTED]> Date: Tue, 29 Oct 2002 11:17:56 +0100 To: undisclosed-recipients:; X-Spam-Status: No, hits=-92.8 required=6.0 tests=FROM_LOCAL,FROM_NAME_NO_SPACES,UNDISC_RECIPS,SUBJ_MISSING, MSG_ID_ADDED_BY_MTA_2,AWL version=2.31 X-Spam-Level: testing mail Which is quite OK but I cannot see any option in ssmtp to set the To or the Subject fields as with the From one. I searched the docs and read the manpage, but I didn't find any documentation on setting the fields Subject and To. thx in advance, m4c. -- 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/