Sunday 5 June 2016

Ubuntu mail configuration and send mail example with attachement

Scenario : In many cases you have to schedule the jobs which send AWR and ADDM reports to application and DBA team to review it. So below command would be useful to configure and send the mails.

Below version applicable to ubuntu, still somewhat applicable in Linux and Aix etc.

$sudo apt-get install sharutils  mailutils$

$uuencode filename filename | mail -s "Subject" user@example123.com


Additionally one can send mail using sendmail command also
After this I can able to mail on my gmail account...It went in to spam