Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attach File

Status
Not open for further replies.

jpillonel

Programmer
Dec 17, 2003
61
CH
Hello,

Is there any way to attach a file to sendmail ??

What we use to do is to cat a file and then send it as the body but how to attach a file to the message ???

Many thanks

(echo "SUBJECT :Error in DB $db (`basename $0`) from `date +'%d-%m-%y'` \n" cat $CURRLOGFILEechange)| /usr/lib/sendmail supoort@company.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top