Example #1
0
 public static function send($module, $handler, $data = array())
 {
     if (empty(static::$config)) {
         static::$config = Config::load('mail');
     }
     Place::init();
     static::clear();
     $path = Module::path($module);
     if (empty($path)) {
         return;
     }
     $path .= '/emails/' . $handler;
     static::run($path, $data);
     return static::mail();
 }