Hi,
I have written a code :
mailx -s "FOR TESTING" "abcd@yahooo.com"
but it is not running and not giving any error msg and also not sending
any mail. It takes infinite time.
Please help me.
Hi,
I have written a code :
mailx -s "FOR TESTING" "abcd@yahooo.com"
but it is not running and not giving any error msg and also not sending
any mail. It takes infinite time.
Please help me.
Check whether your inputs are correct.
If not you can use the mailx command like
mailx -s "FOR TESTING" "abcd@yahoo.com" <<EOF
This is going to be body of the mail
EOF
or
echo "This is going to be body of the mail" |mailx -s "FOR TESTING" "abcd@yahoo.com"
its work.
Thanks.
also you can do really clever stuff like so, send an attachment and run some commands
mailx -s hello bill@blah.com <<EOF
`uuencode file file`
find the file attached on
`date`
cksum should be
`cksum file`
EOF
note the uuencode should really be the first line and have no spaces
before it