| @@ -8,16 +8,16 @@ | ||
| 8 | 8 | const SENDING_METHOD_ID = 'sendinblue'; |
| 9 | 9 | const SENDING_METHOD_NAME = 'Brevo'; |
| 10 | 10 | const SENDING_METHOD_API_URL = 'https://api.brevo.com/v3/'; |
| 11 | 11 | |
| 12 | - private $credentials; | |
| 13 | - private $integration; | |
| 14 | - private $transactional; | |
| 15 | - private $campaign; | |
| 16 | - private $list; | |
| 17 | - private $users; | |
| 18 | - private $sender; | |
| 19 | - private $webhooks; | |
| 12 | + private SendinblueCredentials $credentials; | |
| 13 | + private SendinblueIntegration $integration; | |
| 14 | + private SendinblueTransactional $transactional; | |
| 15 | + private SendinblueCampaign $campaign; | |
| 16 | + private SendinblueList $list; | |
| 17 | + private SendinblueUsers $users; | |
| 18 | + private SendinblueSender $sender; | |
| 19 | + private SendinblueWebhooks $webhooks; | |
| 20 | 20 | |
| 21 | 21 | public function __construct() |
| 22 | 22 | { |
| 23 | 23 | parent::__construct(); |
| @@ -109,8 +109,9 @@ | ||
| 109 | 109 | if ($this->config->get('mailer_method') != self::SENDING_METHOD_ID) return; |
| 110 | 110 | |
| 111 | 111 | $result = $this->users->addUserToList($receiverEmail, $mailId, $warnings); |
| 112 | 112 | if ($result) { |
| 113 | + // The API returns null every time so we have no clue if this went well | |
| 113 | 114 | $this->users->addAttributeToUser($receiverEmail, $subjectContent, $htmlContent, $mailId); |
| 114 | 115 | } |
| 115 | 116 | } |
| 116 | 117 | |