Configuring sendmail option

Hi,

I have a script which check for the health of an application. In the end I want to attache a file to send the information to the user using sendmail.

How to configure sendmail in linux?How to attach a file and send it as a mail from script?

Ahamed.

Is the user a local user, or someone on the internet somewhere?
Is the server already connected to the internet?

Jack

Hi,

Its a local user.I want to send mail withing my company even thought the server is connected to internet.

Ahamed.

mailx -s "System Status" -a statusfile user <<EOF
See attached file for details of blah blah blah
EOF