diff --git a/app/controllers/auth.php b/app/controllers/auth.php index 4b9e4a409d..83afc8e3e5 100644 --- a/app/controllers/auth.php +++ b/app/controllers/auth.php @@ -161,7 +161,7 @@ $utopia->post('/v1/auth/register') // return; // } - // throw new Exception('Problem sending mail: ' . $error->getError(), 500); + // throw new Exception('Problem sending mail: ' . $error->getMessage(), 500); } $webhook @@ -294,7 +294,7 @@ $utopia->post('/v1/auth/register/confirm/resend') try { $mail->send(); } catch (\Exception $error) { - //throw new Exception('Problem sending mail: ' . $error->getError(), 500); + //throw new Exception('Problem sending mail: ' . $error->getMessage(), 500); } $response->json(array('result' => 'success')); @@ -750,7 +750,7 @@ $utopia->post('/v1/auth/recovery') try { $mail->send(); } catch (\Exception $error) { - //throw new Exception('Problem sending mail: ' . $error->getError(), 500); + //throw new Exception('Problem sending mail: ' . $error->getMessage(), 500); } $audit diff --git a/app/controllers/teams.php b/app/controllers/teams.php index 21f6942dea..f2715853f7 100644 --- a/app/controllers/teams.php +++ b/app/controllers/teams.php @@ -378,7 +378,7 @@ $utopia->post('/v1/teams/:teamId/memberships') try { $mail->send(); } catch (\Exception $error) { - //throw new Exception('Problem sending mail: ' . $error->getError(), 500); + //throw new Exception('Problem sending mail: ' . $error->getMessage(), 500); } $audit @@ -457,7 +457,7 @@ $utopia->post('/v1/teams/:teamId/memberships/:inviteId/resend') try { $mail->send(); } catch (\Exception $error) { - //throw new Exception('Problem sending mail: ' . $error->getError(), 500); + //throw new Exception('Problem sending mail: ' . $error->getMessage(), 500); } $audit