home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!friedman
- From: friedman@gnu.ai.mit.edu (Noah Friedman)
- Newsgroups: comp.unix.shell
- Subject: Re: sending mail from shell
- Message-ID: <FRIEDMAN.92Aug21234332@nutrimat.gnu.ai.mit.edu>
- Date: 22 Aug 92 03:43:32 GMT
- References: <1992Aug21.154105.25371@news.duc.auburn.edu>
- Sender: news@ai.mit.edu
- Organization: Free Software Foundation, 675 Mass Ave. Cambridge, MA 02139
- Lines: 21
- In-reply-to: hendefd@woof.duc.auburn.edu's message of 21 Aug 92 15:41:05 GMT
-
- In article <1992Aug21.154105.25371@news.duc.auburn.edu> hendefd@woof.duc.auburn.edu (Frank Henderson) writes:
- >I need a shell script (csh or sh) to send me mail after completion. I
- >tried /usr/lib/sendmail -bm -fperson -t me and then echo'ing a message but
- >this requires an EOF or CTRL-d which I don't know how to do from a shell.
- >Could someone tell me how to do this or suggest a better way.
-
- If you have sendmail, I find that the following works fine in bourne
- shell:
-
- sendmail -t << __EOF__
- From: me
- To: you
-
- Frob me, baby.
-
- __EOF__
-
-
- If you don't have sendmail but have an SMTP port you can talk directly to,
- I have a more complex example that works with bash. I'll send it to
- interested parties by email.
-