diff --git a/app/Helpers/Mail/GmailTransport.php b/app/Helpers/Mail/GmailTransport.php index 6b3c71e0da97..fd2e7b66f195 100644 --- a/app/Helpers/Mail/GmailTransport.php +++ b/app/Helpers/Mail/GmailTransport.php @@ -50,6 +50,8 @@ class GmailTransport extends Transport { /*We should nest the token in the message and then discard it as needed*/ + nlog("inside gmail sender with token {$this->token}"); + $this->beforeSendPerformed($message); $this->gmail->using($this->token); diff --git a/app/Jobs/Mail/NinjaMailerJob.php b/app/Jobs/Mail/NinjaMailerJob.php index 41441ae9c676..0e6d2a427c15 100644 --- a/app/Jobs/Mail/NinjaMailerJob.php +++ b/app/Jobs/Mail/NinjaMailerJob.php @@ -105,6 +105,8 @@ class NinjaMailerJob implements ShouldQueue $user = User::find($this->decodePrimaryKey($sending_user)); + nlog("Sending via {$user->present()->name()}"); + $google = (new Google())->init(); $google->getClient()->setAccessToken(json_encode($user->oauth_user_token)); diff --git a/app/Listeners/Misc/InvitationViewedListener.php b/app/Listeners/Misc/InvitationViewedListener.php index c8a80c949d0d..1cb7083cc255 100644 --- a/app/Listeners/Misc/InvitationViewedListener.php +++ b/app/Listeners/Misc/InvitationViewedListener.php @@ -76,8 +76,8 @@ class InvitationViewedListener implements ShouldQueue if (isset($invitation->company->slack_webhook_url)) { $notification->method = ['slack']; - Notification::route('slack', $invitation->company->slack_webhook_url) - ->notify($notification); + // Notification::route('slack', $invitation->company->slack_webhook_url) + // ->notify($notification); } } }