![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Send mail attachments and have a mail body | shibajighosh | AIX | 1 | 04-18-2008 02:54 PM |
| Pull E-mail address from file, send e-mail | DC Heard | Shell Programming and Scripting | 1 | 01-29-2008 02:23 AM |
| mail problems - how to send mail on solaris | amon | SUN Solaris | 10 | 04-06-2006 10:31 AM |
| I am not able to send mail form unix to other mail accounts. | chinnigd | UNIX for Dummies Questions & Answers | 1 | 04-06-2006 09:31 AM |
| can not send mail from unix server to company/yahoo mail | b5fnpct | UNIX for Dummies Questions & Answers | 5 | 11-22-2002 09:24 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to send a mail
hi, I have tried this code to send mail.Its not giving me error but I am not receiving mail also.Is there any config file that needs to be set. Code:
#!/bin/ksh
echo "The first mail" >msg
cnt=`cat /dir1/msg | wc -l`
if [ $cnt -ne '0' ]
then
mail -s "Hello" abc.xyz@domain.com < msg
fi
I have also tried with the command Code:
mailx -s "hello" abc.xyz@domain.come ven this is not working. Do any one have any idea how to get through this. Last edited by Yogesh Sawant; 06-20-2008 at 02:11 AM.. Reason: added code tags |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|