1

Rackspace でクラウド アプリ (CakePHP を使用) を実行しており、cakephp を使用してメールを送信したいと考えています。私はこれを使用しました:https://github.com/kochb/cakephp-mailgun しかし、それは私に

 "Could not send email.

Error: An Internal Error Has Occurred." 

エラー。メールを送信しようとする方法は、次のコードを使用することです。

$Email = new CakeEmail();


          $from = $this->request->data['Mail']['from'];
          $to = ($this->request->data['Mail']['to']);
          $subject = $this->request->data['Mail']['subject'];
          $message = $this->request->data['Mail']['message'];

                $Email->sender($from, 'TestName');
                $Email->from($from)
                    ->bcc($to)  
                    ->replyTo($from)
                    ->subject($subject)
                    ->send($message);



                    $this->Session->setFlash('On the way to recipient');
                    $this->redirect(array('action' => 'index'));

MailGun API資格情報などを挿入するConfig/Email.phpファイルを編集しました。

何が起こっている可能性がありますか?なぜこれが起こるのか分かりますか?

前もって感謝します!

4

1 に答える 1