Have you installed the modules required as they are not pre installed?
Here is the tutorial and see the comments i made in there as i was also installing php mail on ubuntu