send email with Cygwin
am 17.02.2007 06:11:24 von RolandRB
Maybe not the right group but I can't find one. I am trying to send
email with Cygwin. It seems nearly impossible I have tried exim, mutt,
sendmail, ssmtp whatever. I want to do the ambitious thing of sensing
some text with a subject line to me hotmail account. This does not
work. What does?
$ echo "hello roland" | email -s "subject" rolandberry@hotmail.com
E-Mail Sent
/bin/sh: /usr/lib/sendmail: No such file or directory
Re: send email with Cygwin
am 17.02.2007 06:29:33 von RolandRB
On 17 Feb, 06:11, "RolandRB" wrote:
> Maybe not the right group but I can't find one. I am trying to send
> email with Cygwin. It seems nearly impossible I have tried exim, mutt,
> sendmail, ssmtp whatever. I want to do the ambitious thing of sensing
> some text with a subject line to me hotmail account. This does not
> work. What does?
>
> $ echo "hello roland" | email -s "subject" rolandbe...@hotmail.com
>
> E-Mail Sent
> /bin/sh: /usr/lib/sendmail: No such file or directory
I've picked up an email sent using the command below but there is no
message nor subject line. Anyone know how to fix that?
$ echo "hello roland" | /usr/sbin/ssmtp -s "subject"
rolandberry@hotmail.com
RE: send email with Cygwin
am 17.02.2007 15:14:50 von Nobody
rolandberry@hotmail.com wrote:
>Maybe not the right group but I can't find one. I am trying to send
>email with Cygwin. It seems nearly impossible I have tried exim, mutt,
>sendmail, ssmtp whatever. I want to do the ambitious thing of sensing
>some text with a subject line to me hotmail account. This does not
>work. What does?
>
>$ echo "hello roland" | email -s "subject" rolandberry@hotmail.com
>
>E-Mail Sent
>/bin/sh: /usr/lib/sendmail: No such file or directory
>
create a link for sendmail
/usr/lib/sendmail --> /usr/sbin/ssmpt
works well for me
--
------------------------------------------------------------ ---
Will Renkel
Wheaton, Ill.
REGISTERD Linux User: 300583
------------------------------------------------------------ ---
Re: send email with Cygwin
am 17.02.2007 15:35:57 von RolandRB
On 17 Feb, 15:14, nob...@nowhere.com (Will Renkel) wrote:
> rolandbe...@hotmail.com wrote:
>
> >Maybe not the right group but I can't find one. I am trying to send
> >email with Cygwin. It seems nearly impossible I have tried exim, mutt,
> >sendmail, ssmtp whatever. I want to do the ambitious thing of sensing
> >some text with a subject line to me hotmail account. This does not
> >work. What does?
> >
> >$ echo "hello roland" | email -s "subject" rolandbe...@hotmail.com
> >
> >E-Mail Sent
> >/bin/sh: /usr/lib/sendmail: No such file or directory
> >
>
> create a link for sendmail
> /usr/lib/sendmail --> /usr/sbin/ssmpt
>
> works well for me
I do this.....
$ echo "hello roland" | /usr/sbin/sendmail -s "subject"
rolandberry@hotmail.com
.....and I get an email but it has no message or subject. How can I get
it to send the message and subject line?
>From : U-DELL1\Roland
Sent : 17 February 2007 14:34:11
Re: send email with Cygwin
am 18.02.2007 12:53:29 von Bruce Barnett
"RolandRB" writes:
> $ echo "hello roland" | /usr/sbin/sendmail -s "subject"
> rolandberry@hotmail.com
Sendmail doesn't have a -s option.
Sendmail needs to have the complete mail message with From:, To:, Subject:, etc.
in the header, followed by a blank line, followed by the message.
I have no idea if sendmail will work on cygwin.
Will's suggestion:
>create a link for sendmail
>/usr/lib/sendmail --> /usr/sbin/ssmpt
>
>works well for me
implies to me that sendmail is NOT used, but it's replaced by ssmpt.
You replied to Will's message, but didn't follow his advice.
I'm not sure why.
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
Re: send email with Cygwin
am 26.02.2007 08:30:10 von RolandRB
On 18 Feb, 12:53, Bruce Barnett
wrote:
> "RolandRB" writes:
> > $ echo "hello roland" | /usr/sbin/sendmail -s "subject"
> > rolandbe...@hotmail.com
>
> Sendmail doesn't have a -s option.
> Sendmail needs to have the complete mail message with From:, To:, Subject:, etc.
> in the header, followed by a blank line, followed by the message.
>
> I have no idea if sendmail will work on cygwin.
>
> Will's suggestion:
>
> >create a link for sendmail
> >/usr/lib/sendmail --> /usr/sbin/ssmpt
>
> >works well for me
>
> implies to me that sendmail is NOT used, but it's replaced by ssmpt.
> You replied to Will's message, but didn't follow his advice.
> I'm not sure why.
>
> --
> Sending unsolicited commercial e-mail to this account incurs a fee of
> $500 per message, and acknowledges the legality of this contract.
I'm back working on this now. I have ssmtp working to some extent. It
sends the email with the subject and message and I get it OK except
the script sending it hangs. This is what I am using. I get the email
but no "out of here document" message gets displayed.
cat | /usr/sbin/ssmtp $sendto << -----FINISH-----
To: $sendto
Subject: $msg
$msg
-----FINISH-----
echo "out of here document"
Re: send email with Cygwin
am 26.02.2007 09:03:35 von RolandRB
On 26 Feb, 08:30, "RolandRB" wrote:
> On 18 Feb, 12:53, Bruce Barnett
>
>
>
>
>
> wrote:
> > "RolandRB" writes:
> > > $ echo "hello roland" | /usr/sbin/sendmail -s "subject"
> > > rolandbe...@hotmail.com
>
> > Sendmail doesn't have a -s option.
> > Sendmail needs to have the complete mail message with From:, To:, Subject:, etc.
> > in the header, followed by a blank line, followed by the message.
>
> > I have no idea if sendmail will work on cygwin.
>
> > Will's suggestion:
>
> > >create a link for sendmail
> > >/usr/lib/sendmail --> /usr/sbin/ssmpt
>
> > >works well for me
>
> > implies to me that sendmail is NOT used, but it's replaced by ssmpt.
> > You replied to Will's message, but didn't follow his advice.
> > I'm not sure why.
>
> > --
> > Sending unsolicited commercial e-mail to this account incurs a fee of
> > $500 per message, and acknowledges the legality of this contract.
>
> I'm back working on this now. I have ssmtp working to some extent. It
> sends the email with the subject and message and I get it OK except
> the script sending it hangs. This is what I am using. I get the email
> but no "out of here document" message gets displayed.
>
> cat | /usr/sbin/ssmtp $sendto << -----FINISH-----
> To: $sendto
> Subject: $msg
>
> $msg
> -----FINISH-----
> echo "out of here document"- Hide quoted text -
>
> - Show quoted text -
When I press ENTER the script carries on. I am using DOS text lines
with Cygwin. I am wondering if that is something to do with it.
Re: send email with Cygwin
am 26.02.2007 11:13:46 von RolandRB
On 26 Feb, 09:03, "RolandRB" wrote:
> On 26 Feb, 08:30, "RolandRB" wrote:
>
>
>
>
>
> > On 18 Feb, 12:53, Bruce Barnett
>
> > wrote:
> > > "RolandRB" writes:
> > > > $ echo "hello roland" | /usr/sbin/sendmail -s "subject"
> > > > rolandbe...@hotmail.com
>
> > > Sendmail doesn't have a -s option.
> > > Sendmail needs to have the complete mail message with From:, To:, Subject:, etc.
> > > in the header, followed by a blank line, followed by the message.
>
> > > I have no idea if sendmail will work on cygwin.
>
> > > Will's suggestion:
>
> > > >create a link for sendmail
> > > >/usr/lib/sendmail --> /usr/sbin/ssmpt
>
> > > >works well for me
>
> > > implies to me that sendmail is NOT used, but it's replaced by ssmpt.
> > > You replied to Will's message, but didn't follow his advice.
> > > I'm not sure why.
>
> > > --
> > > Sending unsolicited commercial e-mail to this account incurs a fee of
> > > $500 per message, and acknowledges the legality of this contract.
>
> > I'm back working on this now. I have ssmtp working to some extent. It
> > sends the email with the subject and message and I get it OK except
> > the script sending it hangs. This is what I am using. I get the email
> > but no "out of here document" message gets displayed.
>
> > cat | /usr/sbin/ssmtp $sendto << -----FINISH-----
> > To: $sendto
> > Subject: $msg
>
> > $msg
> > -----FINISH-----
> > echo "out of here document"- Hide quoted text -
>
> > - Show quoted text -
>
> When I press ENTER the script carries on. I am using DOS text lines
> with Cygwin. I am wondering if that is something to do with it.- Hide quoted text -
>
> - Show quoted text -
This does it but I don't like it. I wish there were a *working* mailx
on Cygwin so I could it in one line.
exec 7>~/f7.tmp
cat 1>&7 << FINISH
To: $sendto
Subject: $msg
$msg
zzzzzzzzz
FINISH
/usr/sbin/ssmtp $sendto < ~/f7.tmp
exec 7>&-
rm -f ~/f7.tmp
RE: send email with Cygwin
am 26.02.2007 16:27:41 von Nobody
Try this (use std sendmail syntax)
sendmail -t <
To: you@there.com
From: me@here.com
Subject: just dropping by to say HI
first line of message
rest of message
!
the -t flag tells ssmtp (sendmail) to look at header for To;, From:, Subject etc
--
------------------------------------------------------------ ---
Will Renkel
Wheaton, Ill.
REGISTERD Linux User: 300583
------------------------------------------------------------ ---
Re: send email with Cygwin
am 27.02.2007 07:09:42 von RolandRB
On 26 Feb, 16:27, nob...@nowhere.com (Will Renkel) wrote:
> Try this (use std sendmail syntax)
>
> sendmail -t <
> To: y...@there.com
> From: m...@here.com
> Subject: just dropping by to say HI
>
> first line of message
> rest of message
> !
>
> the -t flag tells ssmtp (sendmail) to look at header for To;, From:, Subject etc
That worked great! Thanks a lot. :o)
RE: send email with Cygwin
am 27.02.2007 14:52:46 von Nobody
Want a real mailx or a very very close tool?
Try "nail".
In fact I have it and installed it as mailx and have no troubles.
Not sure where its at on the web.
rolandberry@hotmail.com wrote:
>On 26 Feb, 09:03, "RolandRB" wrote:
>> On 26 Feb, 08:30, "RolandRB" wrote:
>>
>>
>>
>>
>>
>> > On 18 Feb, 12:53, Bruce Barnett
>>
>> > wrote:
>> > > "RolandRB" writes:
>> > > > $ echo "hello roland" | /usr/sbin/sendmail -s "subject"
>> > > > rolandbe...@hotmail.com
>>
>> > > Sendmail doesn't have a -s option.
>> > > Sendmail needs to have the complete mail message with From:, To:, Subject:, etc.
>> > > in the header, followed by a blank line, followed by the message.
>>
>> > > I have no idea if sendmail will work on cygwin.
>>
>> > > Will's suggestion:
>>
>> > > >create a link for sendmail
>> > > >/usr/lib/sendmail --> /usr/sbin/ssmpt
>>
>> > > >works well for me
>>
>> > > implies to me that sendmail is NOT used, but it's replaced by ssmpt.
>> > > You replied to Will's message, but didn't follow his advice.
>> > > I'm not sure why.
>>
>> > > --
>> > > Sending unsolicited commercial e-mail to this account incurs a fee of
>> > > $500 per message, and acknowledges the legality of this contract.
>>
>> > I'm back working on this now. I have ssmtp working to some extent. It
>> > sends the email with the subject and message and I get it OK except
>> > the script sending it hangs. This is what I am using. I get the email
>> > but no "out of here document" message gets displayed.
>>
>> > cat | /usr/sbin/ssmtp $sendto << -----FINISH-----
>> > To: $sendto
>> > Subject: $msg
>>
>> > $msg
>> > -----FINISH-----
>> > echo "out of here document"- Hide quoted text -
>>
>> > - Show quoted text -
>>
>> When I press ENTER the script carries on. I am using DOS text lines
>> with Cygwin. I am wondering if that is something to do with it.- Hide quoted text -
>>
>> - Show quoted text -
>
>This does it but I don't like it. I wish there were a *working* mailx
>on Cygwin so I could it in one line.
>
>exec 7>~/f7.tmp
>cat 1>&7 << FINISH
>To: $sendto
>Subject: $msg
>
>$msg
>zzzzzzzzz
>FINISH
>
>/usr/sbin/ssmtp $sendto < ~/f7.tmp
>exec 7>&-
>rm -f ~/f7.tmp
>
--
------------------------------------------------------------ ---
Will Renkel
Wheaton, Ill.
REGISTERD Linux User: 300583
------------------------------------------------------------ ---
RE: send email with Cygwin
am 27.02.2007 14:57:02 von Nobody
whats nail and where is it?
As of March 2006, nail has been integrated into the Heirloom project as mailx. Please visit http://heirloom.sourceforge.net/mailx.html and update your bookmarks
--
------------------------------------------------------------ ---
Will Renkel
Wheaton, Ill.
REGISTERD Linux User: 300583
------------------------------------------------------------ ---
RE: send email with Cygwin
am 27.02.2007 15:26:16 von Nobody
For those who try to install nail
or mailx as its now called in my previous note
you will likely have a problem under CYGWIN.
There is a file in the distribution, aux.c.
That is a "reserved" name under CYGWIN.
I resolved it by renaming the file xua.c and changed refcerences ion all other files
Enjoy!
--
------------------------------------------------------------ ---
Will Renkel
Wheaton, Ill.
REGISTERD Linux User: 300583
------------------------------------------------------------ ---