From d726da1e04187f00c9bda6a3f95a331ddcea0312 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Mon, 11 May 2026 10:37:45 +0300 Subject: [PATCH] add mailjet mailer --- backend/app/Email/MailjetMailer.php | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 backend/app/Email/MailjetMailer.php diff --git a/backend/app/Email/MailjetMailer.php b/backend/app/Email/MailjetMailer.php new file mode 100644 index 0000000..dd1b0c5 --- /dev/null +++ b/backend/app/Email/MailjetMailer.php @@ -0,0 +1,36 @@ +mailjet->post(Resources::$Email, [ + 'body' => [ + 'Messages' => [ + [ + 'From' => [ + 'Email' => $from, + 'Name' => $this->fromName, + ], + 'To' => [ + [ + 'Email' => $to, + ], + ], + 'Subject' => 'TIDE', + 'TextPart' => $body, + ], + ], + ], + ]); + } +}