Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Issue Fix 963 #966

Merged
merged 1 commit into from May 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/Directus/Services/MailService.php
Expand Up @@ -32,7 +32,7 @@ public function send(array $data)

$useDefaultEmail = isset($data['use_default_email']) && $acl->isAdmin() ? $data['use_default_email'] : false;
send_mail_with_layout(
'base.twig',
$data['type'] == 'plain' ? 'plain.twig' : 'base.twig',
$data['body'],
(array) ArrayUtils::get($data, 'data'),
$data['type'] == 'plain' ? 'text/plain' : 'text/html',
Expand Down
4 changes: 4 additions & 0 deletions src/mail/plain.twig
@@ -0,0 +1,4 @@
{% block content %}{{ body|raw }}{% endblock %}


This email was sent by Directus – {{settings.project_name }}