示例#1
0
 /**
  * List Mail Configuration
  * @param sfWebRequest $request
  * @return unknown_type
  */
 public function executeListMailConfiguration(sfWebRequest $request)
 {
     $emailConfiguration = new EmailConfiguration();
     $this->mailAddress = $emailConfiguration->getSentAs();
     $this->sendMailPath = $emailConfiguration->getSendMailPath();
     $this->smtpAuth = $emailConfiguration->getSmtpAuthType();
     $this->smtpSecurity = $emailConfiguration->getSmtpSecurityType();
     $this->smtpHost = $emailConfiguration->getSmtpHost();
     $this->smtpPort = $emailConfiguration->getSmtpPort();
     $this->smtpUser = $emailConfiguration->getSmtpUsername();
     $this->smtpPass = $emailConfiguration->getSmtpPassword();
     $this->emailType = $emailConfiguration->getMailType();
     if ($this->getUser()->hasFlash('templateMessage')) {
         $this->templateMessage = $this->getUser()->getFlash('templateMessage');
     }
 }
 private function __setDefaultValues(EmailConfiguration $emailConfiguration)
 {
     $this->setDefaults(array('txtMailAddress' => $emailConfiguration->getSentAs(), 'cmbMailSendingMethod' => $emailConfiguration->getMailType(), 'txtSendmailPath' => $emailConfiguration->getSendmailPath(), 'txtSmtpHost' => $emailConfiguration->getSmtpHost(), 'txtSmtpPort' => $emailConfiguration->getSmtpPort(), 'optAuth' => $emailConfiguration->getSmtpAuthType(), 'txtSmtpUser' => $emailConfiguration->getSmtpUsername(), 'txtSmtpPass' => $emailConfiguration->getSmtpPassword(), 'optSecurity' => $emailConfiguration->getSmtpSecurityType(), 'txtTestEmail' => ''));
 }