|
Home > Archive > Unix Shell > February 2007 > send email with Cygwin
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
send email with Cygwin
|
|
| RolandRB 2007-02-17, 1:22 am |
| 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
| |
| RolandRB 2007-02-17, 1:22 am |
| On 17 Feb, 06:11, "RolandRB" <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
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
| |
| Will Renkel 2007-02-17, 1:17 pm |
| 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
---------------------------------------------------------------
| |
| RolandRB 2007-02-17, 1:17 pm |
| On 17 Feb, 15:14, nob...@nowhere.com (Will Renkel) wrote:
> rolandbe...@hotmail.com wrote:
>
>
> 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 <Roland@hotmail.com>
Sent : 17 February 2007 14:34:11
| |
| Bruce Barnett 2007-02-18, 7:21 am |
| "RolandRB" <rolandberry@hotmail.com> 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.
| |
| RolandRB 2007-02-26, 7:22 am |
| On 18 Feb, 12:53, Bruce Barnett
<spamhater123+U070218065...@grymoire.com> wrote:
> "RolandRB" <rolandbe...@hotmail.com> writes:
>
> 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:
>
>
>
> 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"
| |
| RolandRB 2007-02-26, 7:22 am |
| On 26 Feb, 08:30, "RolandRB" <rolandbe...@hotmail.com> wrote:
> On 18 Feb, 12:53, Bruce Barnett
>
>
>
>
>
> <spamhater123+U070218065...@grymoire.com> wrote:
>
>
>
>
>
>
>
>
> 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.
| |
| RolandRB 2007-02-26, 7:22 am |
| On 26 Feb, 09:03, "RolandRB" <rolandbe...@hotmail.com> wrote:
> On 26 Feb, 08:30, "RolandRB" <rolandbe...@hotmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 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 2007-02-26, 1:18 pm |
| 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
---------------------------------------------------------------
| |
| RolandRB 2007-02-27, 1:24 am |
| 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)
| |
| Will Renkel 2007-02-27, 1:19 pm |
| 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" <rolandbe...@hotmail.com> wrote:
>
>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
---------------------------------------------------------------
| |
| Will Renkel 2007-02-27, 1:19 pm |
| 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
---------------------------------------------------------------
| |
| Will Renkel 2007-02-27, 1:19 pm |
| 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
---------------------------------------------------------------
|
|
|
|
|