diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-04-17 05:33:53 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-04-17 05:33:53 +0000 |
commit | a09ee0623a67f6e8596929cb008e6c91e31a713f (patch) | |
tree | 355ab4b11a9f637e441bc17a59c35be497c0613a /Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php | |
parent | 62b95f35576ea9b9178b900f9480fed0466211a2 (diff) | |
download | Post-SMTP-a09ee0623a67f6e8596929cb008e6c91e31a713f.zip |
* Gmail attahments
* Server name loginc (phpmailer)
* Slack notification field bug
Diffstat (limited to 'Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php')
-rw-r--r-- | Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |