title: Send a mail from shell script in Ubuntu
body: <p>I have created one shell script which performs some database query and created a cron tab to execute that shell script. I am generating log for this task to check whether script is executed successfully or not.<br>
  Now I want to send this log file to developer using <strong>smtp</strong> ?<br>
  How can I configure <strong>smtp</strong> in shell script ?<br>
  Thanks in advance.</p>