/** * Return default mail account from database * * @return Gpf_Db_MailAccount */ public function getDefaultMailAccount() { $mailAccount = new Gpf_Db_MailAccount(); $mailAccount->set(self::IS_DEFAULT, Gpf::YES); try { $mailAccount->loadFromData(array(self::IS_DEFAULT)); } catch (Gpf_Exception $e) { throw new Gpf_Exception($this->_("Failed to load default mail account. Please check your mail account settings.")); } return $mailAccount; }