From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David Lubowa" Subject: RE: sending mail from a bash script Date: Tue, 14 May 2002 15:49:25 +0300 Sender: linux-admin-owner@vger.kernel.org Message-ID: References: <0E1A4DDD.6E21923A.4DAE6F57@netscape.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <0E1A4DDD.6E21923A.4DAE6F57@netscape.net> List-Id: Content-Type: text/plain; charset="us-ascii" To: johnjulian1@netscape.net, Dirk Bonenkamp - Bean IT , linux-admin@vger.kernel.org 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 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