Class Mage_Core_Model_Email_Template
Template model
Example:
// Loading of template $emailTemplate = Mage::getModel('core/email_template') ->load(Mage::getStoreConfig('path_to_email_template_id_config')); $variables = array( 'someObject' => Mage::getSingleton('some_model') 'someString' => 'Some string value' ); $emailTemplate->send('some@domain.com', 'Name Of User', $variables);
- Varien_Object
- Mage_Core_Model_Abstract
- Mage_Core_Model_Template
- Mage_Core_Model_Email_Template
Package: Mage\Core
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Core/Model/Email/Template.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Core/Model/Email/Template.php
protected
|
|
protected
string
|
#
_getLogoUrl(
Return logo URL for emails Take logo from skin if custom logo is undefined |
protected
string
|
|
public
Zend_Mail
|
|
public
|
|
public
|
|
public
|
|
public
|
#
loadDefault( string $templateId, string $locale = null )
Load default email template from locale translate |
public static
array
|
|
public static
array
|
|
public
mixed
|
|
public
|
|
public
boolean
|
|
public
integer|string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
|
#
sendTransactional( integer $templateId, string|array $sender, string $email, string $name, array $vars = array(), integer|null $storeId = null )
Send transactional email to recipient |
public
string
|
|
public
|
|
public
|
|
public
|
|
protected
array
|
|
public
array
|
|
protected
|
_applyDesignConfig(),
_cancelDesignConfig(),
emulateDesign(),
getDesignConfig(),
isPlain(),
revertDesign(),
setDesignConfig()
|
string |
XML_PATH_TEMPLATE_EMAIL
|
'global/template/email' |
#
Configuration path for default email templates |
string |
XML_PATH_SENDING_SET_RETURN_PATH
|
'system/smtp/set_return_path' |
|
string |
XML_PATH_SENDING_RETURN_PATH_EMAIL
|
'system/smtp/return_path_email' |
|
string |
XML_PATH_DESIGN_EMAIL_LOGO
|
'design/email/logo' |
|
string |
XML_PATH_DESIGN_EMAIL_LOGO_ALT
|
'design/email/logo_alt' |
DEFAULT_DESIGN_AREA,
TYPE_HTML,
TYPE_TEXT
|
protected
mixed
|
$_templateFilter |
|
|
protected
boolean
|
$_preprocessFlag | false |
|
protected
mixed
|
$_mail |
|
|
protected static
mixed
|
$_defaultTemplates |
|
$_designConfig,
$_emulatedDesignConfig,
$_initialEnvironmentInfo
|
$_cacheTag,
$_dataSaveAllowed,
$_eventObject,
$_eventPrefix,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|