7

shell script not sending mail accurately using SMTP server

view full story
linux-howto

http://stackoverflow.com – I wrote script to send mail automatically using SMTP Connection but when i execute script sometimes it works and sometimes it is not sending mail. Behavior is quite ambiguous Environment : Linux Server Fedora 14 Mailing Client : Lotus Notes 8.5.2 Please find script below # Function for sending email sendemail(){ date=`date '+%d-%m-%Y'` dbDir=/var/lib/MYSQLBACKUP/$date dbname='DBNAME' log_file="${dbDir}/${dbname}_${date}.log" attached_file="${dbname}_${date}.log" echo $log_file echo $attached_file encoded_log_file=`cat $log_file | openssl base64` #echo $encoded_log_file ( echo open 172.40. (HowTos)