I have a shell script that generates reports. Using crontab I run the scrip everyday at 1000 hrs.I want to mail that report to my gmail id as an attachment.I have tried using mutt but it doesn't work for me. Please could you guide me through it?After installing sendEmail, when I am attempting to send the mail I am getting the following informationSep 14 15:15:37 debal sendEmail[3671]: DEBUG => Connecting to smtp.gmail.com:587Sep 14 15:15:38 debal sendEmail[3671]: DEBUG => My IP address is: 192.168.2.103Sep 14 15:15:38 debal sendEmail[3671]: SUCCESS => Received:     220 mx.google.com ESMTP uw6sm17314211pbc.8 - gsmtpSep 14 15:15:38 debal sendEmail[3671]: INFO => Sending:     EHLO debalSep 14 15:15:38 debal sendEmail[3671]: SUCCESS => Received:     250-mx.google.com at your service, [180.151.208.181], 250-SIZE 35882577, 250-8BITMIME, 250-STARTTLS, 250-ENHANCEDSTATUSCODES, 250 CHUNKINGSep 14 15:15:38 debal sendEmail[3671]: INFO => Sending:     STARTTLSSep 14 15:15:38 debal sendEmail[3671]: SUCCESS => Received:     220 2.0.0 Ready to start TLS******************************************************************* Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER together with SSL_ca_file|SSL_ca_path for verification. If you really don't want to verify the certificate and keep the connection open to Man-In-The-Middle attacks please set SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.*******************************************************************  at /usr/local/bin/sendEmail line 1906.invalid SSL_version specified at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 414.I did a yum install on perl-Net-SSLeay perl-Net-SMTP-SSL and this is the result. [root@debal ~]# yum install perl-Net-SSLeay perl-Net-SMTP-SSLLoaded plugins: langpacks, refresh-packagekitPackage perl-Net-SSLeay-1.54-1.fc19.x86_64 already installed and latest versionPackage perl-Net-SMTP-SSL-1.01-13.fc19.noarch already installed and latest versionNothing to doThe problem still persists and I am using Fedora 19.
Send attachment to gmail id from shell script
linux;shell script;email