Hello everyone! Please help me understand some thing…
I have EmailSubscriber class with method
Code:
static public function getSubscribedEvents()
{
return [
EmailEvents::EMAIL_ON_SEND => array('onEmailGenerate', 0),
EmailEvents::EMAIL_ON_DISPLAY => array('onEmailGenerate', 0)
];
}
for example =
Code:
$content = str_replace('{find}', 'replacement', $content);
Code:
/**
* @param EmailSendEvent $event
*/
public function onEmailGenerate(EmailSendEvent $event)
{
// Get content
$content = $event->getContent();
Thank you! if(strpos($content, '{someleaddata_list}') !== false)
{
$leadData = $event->getLead(); // this method returns null even email was sent to real lead email..</div>