Re: command line smtp client / command line email?

2014-10-01 Thread V.99

On 28.9.2014 19:20, Marilo wrote:

what are my options for a command line smtp client in cygwin?


Hi Marilo.

Have You tried sendEmail ? 
(http://caspian.dotconf.net/menu/Software/SendEmail/)
It is not a Cygwin package but perl script (and compiled Windows 
executable).

I use it for sending logs from my Windows boxes.

--

.: Vlado :.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



RE: command line smtp client / command line email?

2014-09-29 Thread Joi L. Ellis
Now that I'm at work, I've done some digging, and here's what I've found...

On my ancient Windows XP box running 32-bit Cygwin, I have a package installed 
that provides /usr/sbin/sendmail.exe as a symlink to /usr/sbin/ssmtp.exe, and a 
shell secript /usr/bin/mailx.sh that is a front-end for it.

I've been using these to send emails from cron, and from my own perl script, 
for several years and have never had any issues.  It even works from a shell 
script thusly:
 
  $ echo This is the message body | mailx.sh -s 'this is a test subject' 
jlel...@myemail.com 

And I get the email in my office inbox. (Obviously I've obfuscated my email 
address in the line above as an anti-spam measure.)


--
Joi Owen
System Administrator
Pavlov Media, Inc

-Original Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
Marilo
Sent: Sunday, September 28, 2014 12:21 PM
To: cygwin@cygwin.com
Subject: command line smtp client / command line email?

what are my options for a command line smtp client in cygwin?

I'd want to specify smtp server and from address. I'd like TLS/SSL to be 
supported by the command

sendmail , doesn't look like it exists on cygwin and I know on *nix it shuts 
down any postfix server so I guess it mighttry to shut down any smtp server I 
have running.

heirloom mailx  looks good, but doesn't exist for cygwin.

I can't see anything for sending an email from/in cygwin

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



command line smtp client / command line email?

2014-09-28 Thread Marilo
what are my options for a command line smtp client in cygwin?

I'd want to specify smtp server and from address. I'd like TLS/SSL to be 
supported by the command

sendmail , doesn't look like it exists on cygwin and I know on *nix it shuts 
down any postfix server so I guess it mighttry to shut down any smtp server I 
have running.

heirloom mailx  looks good, but doesn't exist for cygwin.

I can't see anything for sending an email from/in cygwin

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: command line smtp client / command line email?

2014-09-28 Thread Thomas Wolff

Am 28.09.2014 19:20, schrieb Marilo:

what are my options for a command line smtp client in cygwin?

I'd want to specify smtp server and from address. I'd like TLS/SSL to be 
supported by the command

sendmail , doesn't look like it exists on cygwin and I know on *nix it shuts 
down any postfix server so I guess it mighttry to shut down any smtp server I 
have running.

heirloom mailx  looks good, but doesn't exist for cygwin.

I can't see anything for sending an email from/in cygwin
There is ssmtp which runs smoothly and is configured sufficiently 
easily. I've been using it with a wrapper script to add some comfort in 
composing a mail.
There is also 'email' but beware, it's broken and sometimes silently 
corrupts email bodies, so you'd better not use it until it gets fixed.

Thomas

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: command line smtp client / command line email?

2014-09-28 Thread D. Boland
Hi Marilo,

Marilo wrote:
 
 what are my options for a command line smtp client in cygwin?
 
 I'd want to specify smtp server and from address. I'd like TLS/SSL to be 
 supported by the command
 
 sendmail , doesn't look like it exists on cygwin and I know on *nix it shuts 
 down any postfix server so I guess it mighttry to shut down any smtp server I 
 have running.
 
 heirloom mailx  looks good, but doesn't exist for cygwin.
 
 I can't see anything for sending an email from/in cygwin

I almost finished porting Sendmail for Cygwin. It does not shut down Exim or
Postfix, but it needs an open port 25 to the outside. Most ISP's don't allow 
this.

The 'email' program can be configured to use the SMTPA (AUTH) port 465 of your 
ISP.
I've been using it for over a year now. No corrupt message body yet.

Cheers,
Daniel


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Command line email clients

2004-05-14 Thread Robert Pollard
Hi,

I need to automate email notifications from a shell script.  I also 
need to be able to set up the email servers for sending mail through a 
shell script.  Which ever email client I use, I need to automate the 
process of setting up and sending mail.

I have looked at Pine and tried to find information on ssmtp but can't 
locate any information on it.  Pine seems a bit much for what I need.  
I would like to be able to just send email and not have the overhead of 
Pine.  Is there documentation on ssmtp that will show me how to setup a 
smtp server and send an email to it?

Thanks,

Robert Pollard

--
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/


Re: Command line email clients

2004-05-14 Thread Eduardo Chappa
*** Robert Pollard ([EMAIL PROTECTED]) wrote in the cygwin list today:

:) I need to automate email notifications from a shell script.  I also 
:) need to be able to set up the email servers for sending mail through a 
:) shell script. Which ever email client I use, I need to automate the 
:) process of setting up and sending mail.
:) 
:) I have looked at Pine and tried to find information on ssmtp but can't 
:) locate any information on it.  Pine seems a bit much for what I need.

Hello Robert,

  I think your best option is to use Mutt, unless you really, really want 
to use Pine. It is possible to use Pine, but only if you apply a patch to 
make it work that way, Pine (without patching) does not send e-mail non 
interactively. Pine does not require ssmtp, since Pine connects directly 
to an SMTP server if you define smtp-server in your .pinerc file.

  If you really want to use Pine, you will have to build your own version. 
and patch it with patches that you can find in my web page (address 
below). You will need the patch Pine sends e-mail from the command line 
and the patch for Cygwin Version of Pine.

  I only have a patch for 4.58, although 4.60 is already out, the patch 
for 4.60 is coming soon (and it will be much nicer than the patch for 
4.58, very much like the patch for version 4.55).

  In case somebody is wondering, I am not planning to release Pine4.60 for 
Cygwin yet, and probably won't unless it's marked as the stable release of 
the pine4.6X series, which I doubt, because a couple of bugs have already 
been found. When Pine4.6X becomes stable I will release a new version of 
Pine.

Eduardo
http://www.math.washington.edu/~chappa/pine/

--
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/



RE: Command line email clients

2004-05-14 Thread Buchbinder, Barry (NIH/NIAID)
I send email from a scripts using ssmtp, but one needs to construct the
entire message, headers and all.  Earlier I had tried mutt; I don't remember
why I switched, but it may have had something to do with sending MIME.

For your reference (and perhaps your amusement), I've attached the script
that I use to format the message to ssmtp.  It is not totally generic, so
you'll have to make changes and test.

-Original Message-
From: Robert Pollard [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 14, 2004 12:08 PM
To: [EMAIL PROTECTED]
Subject: Command line email clients

Hi,

I need to automate email notifications from a shell script.  I also 
need to be able to set up the email servers for sending mail through a 
shell script.  Which ever email client I use, I need to automate the 
process of setting up and sending mail.

I have looked at Pine and tried to find information on ssmtp but can't 
locate any information on it.  Pine seems a bit much for what I need.  
I would like to be able to just send email and not have the overhead of 
Pine.  Is there documentation on ssmtp that will show me how to setup a 
smtp server and send an email to it?

Thanks,

Robert Pollard



sendmail.sh
Description: Binary data
--
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/

Re: Command line email clients

2004-05-14 Thread Igor Pechtchanski
On Fri, 14 May 2004, Robert Pollard wrote:

 Hi,

 I need to automate email notifications from a shell script.  I also
 need to be able to set up the email servers for sending mail through a
 shell script.  Which ever email client I use, I need to automate the
 process of setting up and sending mail.

 I have looked at Pine and tried to find information on ssmtp but can't
 locate any information on it.  Pine seems a bit much for what I need.
 I would like to be able to just send email and not have the overhead of
 Pine.  Is there documentation on ssmtp that will show me how to setup a
 smtp server and send an email to it?

 Thanks,
 Robert Pollard

Have you checked the first obvious place,
/usr/share/doc/Cygwin/ssmtp-2.60.4.README (and the second,
/usr/share/doc/ssmtp-2.60.4/README)?

There are SMTP modules for perl, and another mailer, mutt, which may
have the scripting capability you need (as it has a mail emulation
mode).  Also, someone posted a mail script recently (within the past
week) that uses ssmtp and may do exactly what you want.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

--
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/



Re: Command line email clients

2004-05-14 Thread Robert R Schneck
Eduardo Chappa [EMAIL PROTECTED] wrote:
   I think your best option is to use Mutt, unless you really, really want 
 to use Pine. It is possible to use Pine, but only if you apply a patch to 
 make it work that way, Pine (without patching) does not send e-mail non 
 interactively. Pine does not require ssmtp, since Pine connects directly 
 to an SMTP server if you define smtp-server in your .pinerc file.

You can also set sendmail-path in your .pinerc file to use ssmtp -t.
That's not particularly useful, but if you write a little script to 
queue outgoing mail and set sendmail-path=/path/to/queuemail, and 
then have a separate script run regularly to try to send the queued 
mail using ssmtp -t, you have a nice way to use Pine offline.

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/



Re: Command line email clients

2004-05-14 Thread jerzy szczudowski
  Robert Pollard wrote:
 I need to automate email notifications from a shell script.  I also 
 need to be able to set up the email servers for sending mail through a 

Then all you need is ssmtp (assuming you have somwhere real mail hub).
Look into /etc/ssmtp/ssmtp.conf - it has three options to set.

And probably you want something to construct headers, like this
mailx-simulating puppy ;)
http://article.gmane.org/gmane.os.cygwin/48461



--
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/



Re: Command-line email?

2003-01-17 Thread Corinna Vinschen
On Fri, Jan 17, 2003 at 11:40:26AM -, Vince Hoffman wrote:
 nail is good ( i use it myself) but it has a file called aux.c/.h which
 cannot be created on win32 cause windows is irritating like that (needed to
 extract and rename it on a linux machine.) just renamed aux to aux1 and then
 did a grep in the source and changed any references found.

Anybody willing to ask the authors/maintainers to change that filename
already in their vanilla source tree?  I had the same problem once 
with OpenSSH but the maintainers where sympathetic and changed it very
soon after I described why that doesn't work on Windows.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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: Command-line email?

2003-01-17 Thread Vince Hoffman
Since i use it I'm happy to ask (and just have.) Meant to before but keep
forgetting.

 -Original Message-
 From: Corinna Vinschen [mailto:[EMAIL PROTECTED]]
 Sent: 17 January 2003 12:05
 To: [EMAIL PROTECTED]
 Subject: Re: Command-line email?
 
 
 On Fri, Jan 17, 2003 at 11:40:26AM -, Vince Hoffman wrote:
  nail is good ( i use it myself) but it has a file called 
 aux.c/.h which
  cannot be created on win32 cause windows is irritating like 
 that (needed to
  extract and rename it on a linux machine.) just renamed aux 
 to aux1 and then
  did a grep in the source and changed any references found.
 
 Anybody willing to ask the authors/maintainers to change that filename
 already in their vanilla source tree?  I had the same problem once 
 with OpenSSH but the maintainers where sympathetic and changed it very
 soon after I described why that doesn't work on Windows.
 
 Corinna
 
 -- 
 Corinna Vinschen  Please, send mails 
 regarding Cygwin to
 Cygwin Developer
 mailto:[EMAIL PROTECTED]
 Red Hat, Inc.
 
 --
 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: Command-line email?

2003-01-17 Thread Joshua Daniel Franklin
 On Fri, Jan 17, 2003 at 11:40:26AM -, Vince Hoffman wrote:
  nail is good ( i use it myself) but it has a file called 
 aux.c/.h which
  cannot be created on win32 cause windows is irritating like 
 that (needed to
  extract and rename it on a linux machine.) just renamed aux 
 to aux1 and then
  did a grep in the source and changed any references found.
 
 Anybody willing to ask the authors/maintainers to change that filename
 already in their vanilla source tree?  I had the same problem once 
 with OpenSSH but the maintainers where sympathetic and changed it very
 soon after I described why that doesn't work on Windows.

Even better, would anyone be interested in making this a cygwin package?
Glancing at the online version of the man page, I especially like easy MIME
attachments from the CLI. Is there a mailing list, Vince?

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
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: Command-line email?

2003-01-17 Thread Jason Tishler
On Fri, Jan 17, 2003 at 07:02:29AM -0800, Joshua Daniel Franklin wrote:
 Glancing at the online version of the man page, I especially like easy
 MIME attachments from the CLI.

FYI, mutt can do this too.

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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: Command-line email?

2003-01-17 Thread Vince Hoffman
no mailing list that i know of I'm afraid. 

 -Original Message-
 From: Joshua Daniel Franklin [mailto:[EMAIL PROTECTED]]
 Sent: 17 January 2003 15:02
 To: [EMAIL PROTECTED]
 Subject: RE: Command-line email?
 
 
  On Fri, Jan 17, 2003 at 11:40:26AM -, Vince Hoffman wrote:
   nail is good ( i use it myself) but it has a file called 
  aux.c/.h which
   cannot be created on win32 cause windows is irritating like 
  that (needed to
   extract and rename it on a linux machine.) just renamed aux 
  to aux1 and then
   did a grep in the source and changed any references found.
  
  Anybody willing to ask the authors/maintainers to change 
 that filename
  already in their vanilla source tree?  I had the same problem once 
  with OpenSSH but the maintainers where sympathetic and 
 changed it very
  soon after I described why that doesn't work on Windows.
 
 Even better, would anyone be interested in making this a 
 cygwin package?
 Glancing at the online version of the man page, I especially 
 like easy MIME
 attachments from the CLI. Is there a mailing list, Vince?
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 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/




Command-line email?

2003-01-16 Thread Michael Hipp
Does cygwin have a simple command-line email tool to toss an email to an
SMTP server (without having to configure and run a full-taco MTA)?

Thanks,
Michael


--
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: Command-line email?

2003-01-16 Thread dmeans
ssmtp, pine, mutt,  and there's always perl Mail::Sender.

David

 
 Does cygwin have a simple command-line email tool to toss an email to an
 SMTP server (without having to configure and run a full-taco MTA)?
 
 Thanks,
 Michael
 
 
 --
 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: Command-line email?

2003-01-16 Thread Max Bowsher
Michael Hipp wrote:
 Does cygwin have a simple command-line email tool to toss an email to
 an SMTP server (without having to configure and run a full-taco MTA)?

I've never used it, but ssmtp might do what you want. Otherwise, exim is
*very* easy to set up.

Max.


--
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: Command-line email?

2003-01-16 Thread Randall R Schulz
Michael,

Yes.

Apropros (man -k) is helpful if you have a package installed. With a full 
Cygwin installation:

% apropos mail
Net::SMTP (3)- Simple Mail Transfer Protocol Client
Net::SMTP (3pm)  - Simple Mail Transfer Protocol Client
exim (8) - a Mail Transfer Agent
fetchmail (1)- fetch mail from a POP, IMAP, ETRN, or ODMR-capable 
server
formail (1)  - mail (re)formatter
mbox (5) - Format for mail message storage.
mutt (1) - The Mutt Mail User Agent
mutt_dotlock (1) - Lock mail spool files.
muttrc (5)   - Configuration file for the Mutt Mail User Agent
pine (1) - a Program for Internet News and Email
procmail (1) - autonomous mail processor
procmailex (5)   - procmail rcfile examples
procmailrc (5)   - procmail rcfile
procmailsc (5)   - procmail weighted scoring technique
ssmtp, sendmail (8)  - send a message using smtp


The Cygwin package search page (http://cygwin.com/packages/) can help, 
too (patience required). With a simple search for mail there, 72 packages 
are listed. Not all seem completely relevant: BASH? Vim? Lilypond? I don't 
know why all those hits are produced.


And what's that search engine? Oh, yeah. Google... I've heard it's good.


I use ssmtp with some cover scripts to send automated change notification 
mail to my partners when I do CVS updates, e.g.

Randall Schulz


At 10:45 2003-01-16, Michael Hipp wrote:
Does cygwin have a simple command-line email tool to toss an email to an
SMTP server (without having to configure and run a full-taco MTA)?

Thanks,
Michael



--
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/