Unless your really go out of your way to break your Linux installation, everything you need is installed properly and all you need to do is call the mail function that's explained in the manual. It will prepare the mail and forward it to the mail transfer agent program (sendmail).
Did you try that, and did you have a specific problem with it?