php - Any ideas on class isn't instantiating in Magento for the correct event firing (SMTPPro event vs. test event)? -


i wondering if might have advice me on why i've got event observer class instantiating fine when tie controller_action_predispatch, absolutely nothing when i'm tying in aschroder_smtppro_before_send, need work.

i don't want end skipping on doing right way, , override in zend_mail, instead, i'm getting little desperate after amount of hours i've spent trying figure out why isn't working @ all, when tied correct event.

all of regarding implementing simple blacklist of domains intercept , block transactional email (handled through smtppro on our server) applicable domains. mean, eventually. right it's test code, can see following.

config.xml follows:

<?xml version="1.0" encoding="utf-8"?>   <config>     <modules>         <myorganization_emailblacklist>             <version>0.1.0</version>         </myorganization_emailblacklist>     </modules>     <global>       <helpers>         <emailblacklist>             <class>myorganization_emailblacklist_helper</class>         </emailblacklist>       </helpers>       <models>         <myorganization_emailblacklist>           <class>myorganization_emailblacklist_model</class>         </myorganization_emailblacklist>       </models>       <events>         <!-- <controller_action_predispatch> -->         <aschroder_smtppro_before_send>           <observers>             <myorganization_emailblacklist>               <type>singleton</type>               <class>myorganization_emailblacklist/observer</class>               <method>watchemails</method>             </myorganization_emailblacklist>           </observers>         </aschroder_smtppro_before_send>         <!-- </controller_action_predispatch> -->       </events>     </global>   </config> 

app/code/local/myorganization/emailblacklist/model/observer.php follows:

<?php class uselite_emailblacklist_model_observer {     public function watchemails(varien_event_observer $observer) {         $order = $observer->getevent();          //echo "<pre>";         //die(var_dump($order));         mage::log('damo\'s debugging info order:\n' . var_dump($order) .             '\n debugging info observer:\n' . var_dump($observer), null,             'd4m0log.log');     } } 

any might able offer, or pointers in right direction, appreciated. in advance.

-damon

did try aschroder_smtppro_template_before_send instead of aschroder_smtppro_before_send ? far know, extension overrides e-mail template engine.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -