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

Commit

Permalink
Plain text mail issu resolve (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
binal-7span authored May 21, 2019
1 parent eb3ab16 commit 42fdd20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Directus/Services/MailService.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% block content %}{{ body|raw }}{% endblock %}


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

0 comments on commit 42fdd20

Please sign in to comment.