Below is the code :
<?php public function sendEmail() { $fromEmail = "from@abc.com"; // sender email address $fromName = "EWA"; // sender name $toEmail = "to@abc.com"; // recipient email address $toName = "EWA1"; // recipient name $body = "This is Test Email!"; // body text $subject = "Test Subject1"; // subject text $mail = new Zend_Mail(); $mail->setBodyText($body); $mail->setFrom($fromEmail, $fromName); $mail->addTo($toEmail, $toName); $mail->setSubject($subject); try { $mail->send(); } catch(Exception $ex) { Mage::getSingleton('core/session') ->addError(Mage::helper('yourmodulename') //Your custom module name ->__('Unable to send email.')); } } ?>
Read More Regarding the PHP Email Click Here
Hope this would be helpfull, Keep reading and enjoy the Magento coding.