Changed visibility of methods to allow extension. Replaced mail() function with Magento's Zend_Mail