I tried to Sends email but somehow email not getting out, please help me how I can write shell script in right manner. Thanks and regards
This is the one I tried my end.
Script:
#!/bin/sh
set wma = `grep -i "java" sampletest`
echo $wma
mail -v -s "ALERT" tamilmercy@yahoo.com < alertfile
Result:
r.invoke.InvokeManager.process(InvokeManager.java:612) :i
tamilmercy@yahoo.com... Connecting to [127.0.0.1] via relay...
tamilmercy@yahoo.com... Deferred: Connection refused by [127.0.0.1]