Split welcome email between html and text version

This commit is contained in:
Johannes Zellner
2020-11-19 22:29:29 +01:00
parent 7663360ce6
commit fbe5f42536
3 changed files with 16 additions and 29 deletions
@@ -1,22 +1,3 @@
<%if (format === 'text') { %>
Dear <%= user.displayName || user.username || user.email %>,
Welcome to <%= cloudronName %>!
Follow the link to get started.
<%- inviteLink %>
<% if (invitor && invitor.email) { %>
You are receiving this email because you were invited by <%= invitor.email %>.
<% } %>
Please note that the invite link will expire in 7 days.
Powered by https://cloudron.io
<% } else { %>
<center>
<img src="<%= cloudronAvatarUrl %>" width="128px" height="128px"/>
@@ -46,5 +27,3 @@ Powered by https://cloudron.io
</div>
</center>
<% } %>
+14
View File
@@ -0,0 +1,14 @@
Dear <%= user.displayName || user.username || user.email %>,
Welcome to <%= cloudronName %>!
Follow the link to get started.
<%- inviteLink %>
<% if (invitor && invitor.email) { %>
You are receiving this email because you were invited by <%= invitor.email %>.
<% } %>
Please note that the invite link will expire in 7 days.
Powered by https://cloudron.io