From 015bccaed27b7e5d8acebad1b959f2bc6a53256a Mon Sep 17 00:00:00 2001 From: Wisdom Ebong Date: Sun, 25 Apr 2021 09:00:38 +0100 Subject: [PATCH] make GmailSource::send compatible with OutgoingAPIDataSource::send --- composer.json | 4 ++-- src/GmailSource.php | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index d011de0..2288c35 100644 --- a/composer.json +++ b/composer.json @@ -17,8 +17,8 @@ "require": { "ext-json": "*", "google/apiclient": "^2.0", - "illuminate/mail": "^5.5 || ^6.0 || ^7.0", - "illuminate/support": "^5.5 || ^6.0 || ^7.0", + "illuminate/mail": "^5.5 || ^6.0 || ^7.0 || ^8.0", + "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0", "league/html-to-markdown": "^4.10", "nesbot/carbon": "^1.3 || ^2.3", "zbateson/mail-mime-parser": "^1.2" diff --git a/src/GmailSource.php b/src/GmailSource.php index 28d9ee6..fad876e 100644 --- a/src/GmailSource.php +++ b/src/GmailSource.php @@ -192,9 +192,12 @@ public function fetch($limit = false) * @param string to Phone number to receive the message * @param string message Message to be sent * @param string title Message title + * @param string contact_type type of the contact to reach out to + * (for multi-channel datasources) + * * @return array Array of message status, and tracking ID. */ - public function send($to, $message, $title = '') + public function send($to, $message, $title = '', $contact_type = null) { $gmail = $this->connect();