Showing posts with label How to send email in Magento | Sending mail in magento | Magento Send Custom Email script magento. Show all posts
Showing posts with label How to send email in Magento | Sending mail in magento | Magento Send Custom Email script magento. Show all posts

Friday, 20 December 2013

Send E-mail from magento


Send E-mail from magento

<?php
$mail = Mage::getModel('core/email');
$mail->setToName('Your Name');
$mail->setToEmail('Youe Email');
$mail->setBody('Mail Text / Mail Content');
$mail->setSubject('Mail Subject');
$mail->setFromEmail('Sender Mail Id');
$mail->setFromName("Msg to Show on Subject");
$mail->setType('html');// YOu can use Html or text as Mail format
$mail->send();
?>