Sending attachment using sendmail command

Send_Mail()
{
C_Date=`date +"%m/%d/%Y"` 
#Subject="MMDB Load Job Status"
for i in `cat $Metafile`
do
  if [ `echo $i | cut -d":" -f1` == 'Email' ]
  then 
    email_address=`echo $i | cut -d":" -f2`
    /usr/lib/sendmail "$email_address" < $Email_File
  fi
done
}

this is the send mail command i am using .please let me know how to attach a excel sheet using the sendmail command .
As i am unavble to do it and had tried all the possible options that i can get by googling

Welcome to the forum Alok.
Since you are new to the forum, please make a note of the following

  • You can use search with in the forum for sending attachment. There are lots of similar threads. Even you can find relative threads at the bottom of this page in "More UNIX and Linux Forum Topics You Might Find Helpful" section.
  • Please use code-tags while posting code snippet.

Please let us know if you still face any issues.