コード例 #1
0
 /**
  * @return boolean
  */
 function Mail()
 {
     $form_name = $this->Config()->form_name();
     $to_addr = $this->GetEnv('admin-mail');
     $from_name = $this->Form()->GetInputValue($this->Config()->input_name('name'), $form_name);
     $from_addr = $this->Form()->GetInputValue($this->Config()->input_name('email'), $form_name);
     $subject = $this->Form()->GetInputValue($this->Config()->input_name('subject'), $form_name);
     $message = $this->Form()->GetInputValue($this->Config()->input_name('message'), $form_name);
     $mail = new EMail();
     $mail->To($to_addr);
     $mail->Cc($from_addr, $from_name);
     $mail->From($from_addr, $from_name);
     $mail->Subject($subject);
     $mail->Content($message);
     if (!($io = $mail->Send())) {
         $mail->Debug();
     }
     return $io;
 }