% var c = (typeof nlCounts !== 'undefined') ? nlCounts : { confirmed:0, pending:0, unsub:0 }; var msg = (typeof nlMsg !== 'undefined') ? nlMsg : ''; var msgKind = (typeof nlMsgKind !== 'undefined') ? nlMsgKind : ''; var hist = (typeof nlHistory !== 'undefined') ? nlHistory : []; var smtp = (typeof nlSmtp !== 'undefined') ? nlSmtp : false; %> <%= t('anews.title') %> <% if (msg) { %><%= msg %><% } %> <%= c.confirmed %><%= t('anews.confirmed') %> <%= c.pending %><%= t('anews.pending') %> <%= c.unsub %><%= t('anews.unsub') %> <% if (!smtp) { %> <%= t('anews.smtp_warn_1') %> (SMTP_HOST / SMTP_PORT / SMTP_USER / SMTP_PASS / SMTP_FROM <%= t('anews.smtp_warn_2') %> .env). <% } %> <%= t('anews.share') %> <%= nlSubscribeUrl %> <% var _sendConfirm = t('anews.send_confirm', { n: c.confirmed }); %> <%= t('anews.subject') %> <%= t('anews.body') %> <%= (typeof nlBody!=='undefined')?nlBody:'' %> onclick="return confirm('<%= _sendConfirm %>')"><%= t('anews.send_btn', { n: c.confirmed }) %> <% if (hist.length) { %> <%= t('anews.sent_heading') %> <% var _recipients = t('anews.recipients'); %> <% hist.forEach(function(h){ %> <%= h.subject %><%= h.recipient_count %> <%= _recipients %> ยท <%= formatDateTime ? formatDateTime(h.sent_at) : h.sent_at %> <% }); %> <% } %>
SMTP_HOST / SMTP_PORT / SMTP_USER / SMTP_PASS / SMTP_FROM
.env
<%= t('anews.share') %> <%= nlSubscribeUrl %>