You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Fipamo/brain/utility/Mailer.inc.php

20 lines
400 B
PHTML

<?php
use Slim\Views\Twig;
class Mailer
{
public static function sendMail($request, $body, $response)
{
$view = Twig::fromRequest($request);
$render = $view->render($response, "dash/email.twig", [
"title" => "EMAIL TESTER",
"header" => "Snarky Descriptor",
"content" => $body["content"],
]);
$email = $render->getBody()->getContents();
echo $email;
}
}