Browse Source

Merge branch 'dev'

master
Guillaume Bourgeois 5 years ago
parent
commit
248d211c6d
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      backend/models/MailForm.php

+ 9
- 1
backend/models/MailForm.php View File

@@ -178,7 +178,15 @@ Produits disponibles :
$response = $mj->post(\Mailjet\Resources::$Email, ['body' => $body]);
}
return $response->success() ;
$success = $response->success() ;
if($success) {
return true ;
}
else {
Yii::error($response->getBody(), 'Mailjet');
return false ;
}
}

}

Loading…
Cancel
Save