Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Custom Email in magento Custom module
 
vish219
Jr. Member
 
Total Posts:  2
Joined:  2011-11-06
 

[color=red] public function sendEmailToAdmin($objData)
{
// print_r($objData->getData());
$translate = Mage::getSingleton(’core/translate’);
/* @var $translate Mage_Core_Model_Translate */
$translate->setTranslateInline(false);
//echo Mage::getStoreConfig(self::XML_PATH_ADMIN_EMAIL_TEMPLATE) .’ --- ‘. Mage::getStoreConfig(self::XML_PATH_ADMIN_EMAIL_IDENTITY); exit;
$email = Mage::getModel(’core/email_template’);

$email->sendTransactional(
Mage::getStoreConfig(self::XML_PATH_ADMIN_EMAIL_TEMPLATE),
Mage::getStoreConfig(self::XML_PATH_ADMIN_EMAIL_IDENTITY),
$objData->getSenderEmail(),
$objData->getSenderName(),
array(’sender’=>$objData)

);


$translate->setTranslateInline(true);

return $this;
}

friends i code in model bu still mail is not gng wat i have to do?[/color]

 
Magento Community Magento Community
Magento Community
Magento Community
 
vish219
Jr. Member
 
Total Posts:  2
Joined:  2011-11-06
 

plz any body help me plzzzzzzzzz

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top