Sending email from Magento to fails

 Sending email from Magento to fails – Stack Overflow

It’s better to use Magento’s models for sending email. This way you know it’s being send correctly, and get userful errors when it fails

The most simply way:

$email = Mage::getModel('core/email_template');
$email->setSenderEmail('sender@email.com');
$email->setSenderName('name');
$email->setTemplateSubject('Subject');
$email->setTemplateText('emailbody');
$email->send('receiver@mail.com', 'receiver name');

Remember that you host my not support sending mail, or that your provider is blocking port 25. This will result in a message in your exception.log

If you want to see how the final email looks, print $email->getProcessedTemplate() onto your screen