We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5228564 commit cc080a9Copy full SHA for cc080a9
src/Mailers/O365/Office365Connector.php
@@ -57,11 +57,17 @@ protected function getAccessToken(): string
57
return $token->access_token;
58
}
59
60
+ protected function refreshClientToken(): void
61
+ {
62
+ $this->client->setAccessToken($this->getAccessToken());
63
+ }
64
+
65
/**
66
* Send a request to the API to send out the email.
67
*/
68
public function sendMessageRequest(Email $message): Message
69
{
70
+ $this->refreshClientToken();
71
// If the whole message body is bigger than 4MB we'll handle it differently
72
if ($this->getBodySize($message) >= 4) {
73
// Create a draft message
0 commit comments