In the past my server was on a windows system and as such I just setup my mail via php.ini... now that its on linux I had to setup sendmail...
whats the driest/easiest/boiled down code to use/test if mail is working right