Package DE_EPAGES::ShopMailType::API::ShopMailType
object interface for ShopMailType.
Base |
Exporter |
@EXPORT_OK |
Functions
GetShopMailType
Returns a ShopMailType object of a shop. If the object does not exist yet, it will be created from the corresponding MailTypeTemplate object. If the parameter $IfActive is true, then the function will return undef if the mail event is not active.
Syntax |
$ShopMailType = GetShopMailType($Shop, $Alias) $ShopMailType = GetShopMailType($Shop, $Alias, $IfActive) |
Example |
my $ShopMailType = GetShopMailType($Shop, 'CustomerWelcome', 1); if( defined $ShopMailType ) { $ShopMailType->send( $Shop, { 'TO' => $User->get('EMail'), }, { Locale => 'de_DE', Language => 'de', }, { 'Customer' => $Customer->tleHash, 'User' => $User->tleHash, } }); } |
Input |
|
Return |
|