Example #1
0
 private function createResponse($result)
 {
     $response = new SendResponse();
     if ($result->getStatus() == 200) {
         $response->setSuccess(true);
     }
     return $response;
 }
Example #2
0
 private function createResponse($result, $message)
 {
     /** @var  Email $message */
     $response = new SendResponse();
     if ($result->getCode() == 200) {
         $response->setSuccess(true);
         $response->setHash($message->getSmtpapi()->unique_args['hash']);
     }
     return $response;
 }