Skip to content

Mockup disclaimer should be inserted inside <body> #102

@asiffermann

Description

@asiffermann

The mockup disclaimer is appended after the whole HTML body in EmailSender.DoMockupAndSendEmailAsync.
With an auto-generated HTML from plain-text message, it outputs:

<!DOCTYPE html>
<html>
<head>
  <title>Subject</title>
</head>
<body>
  Message
</body>
</html>
<br />
<i>
  This email was originally destined to the following recipients, and was mocked up because it was sent from a test environment.
  <br />
  Recipient (recipient-1@getproffer.net)
</i>

The disclaimer infos shouldn't be simply appended, but inserted at the end of the body.
For templated emails, we should us a reserved context key to insert it wherever the developer wants it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions