Posted: Fri Nov 10, 2006 10:00 am Post subject: Sendmail
Voyager
Joined: 14 Aug 2006 Posts: 78
Hi all,
In my unix script, i want to use the email command to send an email to our group once my script is done processing.
I tried the following commands:
mail -s "from@address.com"
sendmail -bm "from@address.com"
mail -c "from@address.com"
But the program just waits there at the command prompt without doing anything and after waiting for 5 minutes i have to manually kill it (CTRL-C) and no mail is sent. Can i know the right method to send an email to myself first (test it) and then send it to the rest of the group.
I need the syntax of the mail command in Unix. Can I also test it from the command prompt before inserting the command in my script?
I am new to the scripts and i need this help.
I appreciate your response. Thanks a lot in advance.
Maybe you should understand when commands read from standard input, and what that means. _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum