send email base

$mail = Mage::getModel('core/email');
$mail->setToName('wang');
$mail->setToEmail('xiaoming@leeroy.ca');
$mail->setBody('Mail Text / Mail Content');
$mail->setSubject('test email magento');
$mail->setFromEmail('xiaoming@leeroy.ca');
$mail->setFromName("wangxiaoming");
$mail->setType('html');// YOu can use Html or text as Mail format
$mail->send();

Leave a Comment