From a09ee0623a67f6e8596929cb008e6c91e31a713f Mon Sep 17 00:00:00 2001 From: yehudah Date: Tue, 17 Apr 2018 05:33:53 +0000 Subject: * Gmail attahments * Server name loginc (phpmailer) * Slack notification field bug --- Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php') diff --git a/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php b/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php index 4cf9b31..3cb05c9 100644 --- a/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php +++ b/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php @@ -189,10 +189,10 @@ if (! class_exists ( 'PostmanGmailApiModuleZendMailTransport' )) { // The message needs to be encoded in Base64URL $encodedMessage = rtrim ( strtr ( base64_encode ( $message ), '+/', '-_' ), '=' ); $googleApiMessage = new Google_Service_Gmail_Message (); - $googleApiMessage->setRaw ( $encodedMessage ); $googleService = $this->_config [self::SERVICE_OPTION]; $googleClient = $googleService->getClient(); - //$googleService = new Google_Service_Gmail($googleClient); + + $file_size = strlen($message); $result = array (); try { @@ -210,7 +210,7 @@ if (! class_exists ( 'PostmanGmailApiModuleZendMailTransport' )) { true, $chunkSizeBytes ); - $media->setFileSize(strlen($message)); + $media->setFileSize($file_size); $status = false; while (! $status) { -- cgit v1.2.3