/** * @inheritdoc */ public function send(string $to, string $from, string $template, array $tags = []) : bool { try { $apiKey = $this->config['api_key']; $mail = new Mail($from, ' ', $to, ' ', $tags); $mail->setTemplateId($template); $sender = new Sender($apiKey); $sender->client->mail()->send($mail); return true; } catch (Exception $ex) { return false; } }