Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 328753cd authored by Akhil's avatar Akhil
Browse files

Fix error logging when email not sent

parent 4b856447
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -168,7 +168,7 @@ class UserService {
			$email = $this->createSendGridEmail($fromEmail, $fromName, $toEmail, $toName, $templateID, $uid, $mainDomain);
			$this->sendEmailWithSendGrid($email, $sendgridAPIkey);
		} catch (Throwable $e) {
			$this->logger->error($e, ['app' => Application::APP_ID]);
			$this->logger->error('Error sending email to: ' . $email . ': ' . $e->getMessage());
		}
	}
	private function getSendGridAPIKey() : string {