Send Mail With Attachment

Hi,

I need to send attachment with email as external attachment. Presently, we are using uuencode to make an attachment but it is going as content of body. We are using below command.

uuencode "filename1" "filename2" | mailx -r "$SENDFROM" ${SENDTO} 

In unix box, -a is not supportable even for mail and send mail. Please help how to send email with external attachment without using uunecode,mailx or mail or sendmail

Please follow forum culture and posting rules:

  1. Search the forums before posting a question.
  2. Use code tags when posting code, even one line of code.

Thanks.

PS: If you search the forums you will find this question has been answered many times over the years.