From: "David Lubowa" <ziggy@sanyutel.com>
To: johnjulian1@netscape.net,
Dirk Bonenkamp - Bean IT <dirk@bean-it.nl>,
linux-admin@vger.kernel.org
Subject: RE: sending mail from a bash script
Date: Tue, 14 May 2002 15:49:25 +0300 [thread overview]
Message-ID: <PIEEIKGKKEFPJHGKAOAHCEOECOAA.ziggy@sanyutel.com> (raw)
In-Reply-To: <0E1A4DDD.6E21923A.4DAE6F57@netscape.net>
i have a bash script that sends a user mail when created on the mailserver
i am running Postfix so i can only create a MailDir when i send a user
e-mail when created , have a look through it and see if it i will help you.
[snip]
#!/bin/bash
useradd -mk /dev/shm -d /var/home/$1 -s /bin/false $1;
cd /var/home
chown -R $1.users $1/
echo "blah blah blah problems e-mail support@foo.com" | mutt -s Greetings
$1
[/snip]
hope this helps ..thats how i am sendig an e-mail from a bash script. works
well for me :)
ziggy
-----Original Message-----
From: linux-admin-owner@vger.kernel.org
[mailto:linux-admin-owner@vger.kernel.org]On Behalf Of
johnjulian1@netscape.net
Sent: Tuesday, May 14, 2002 3:03 PM
To: Dirk Bonenkamp - Bean IT; linux-admin@vger.kernel.org
Subject: RE: sending mail from a bash script
mail Somebody@somewhere.org < MailMessageFile
or
echo "message to send
including new lines" | mail somebody@somewhere.org
Dirk Bonenkamp - Bean IT <dirk@bean-it.nl> wrote:
>Hi all,
>
>I think this one is quite simple, but couldn't find the answer on the net
>(not in a matter of minutes, that is :-))....
>
>I want to send a mail from a bash script... How do I do this??
>
>TIA,
>
>Dirk
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2002-05-14 12:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-14 12:03 sending mail from a bash script johnjulian1
2002-05-14 12:49 ` David Lubowa [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-05-14 11:55 Dirk Bonenkamp - Bean IT
2002-05-14 15:12 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PIEEIKGKKEFPJHGKAOAHCEOECOAA.ziggy@sanyutel.com \
--to=ziggy@sanyutel.com \
--cc=dirk@bean-it.nl \
--cc=johnjulian1@netscape.net \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox