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, + ], + ], + ], + ]); + } +}