package mailer import "fmt" // ReminderDueTemplate renders subject/HTML/text bodies for a reminder // ("Wiedervorlage") that has reached its due date. Used by the // `archivdms reminders notify` cron subcommand. func ReminderDueTemplate(documentTitle, note, dueDate, appURL string) (subject, html, text string) { subject = fmt.Sprintf("Wiedervorlage fällig: %s", documentTitle) html = fmt.Sprintf(`
Eine Wiedervorlage ist fällig:
Dokument: %s
Fällig am: %s
%s
`, documentTitle, dueDate, note, appURL) text = fmt.Sprintf("Eine Wiedervorlage ist fällig:\nDokument: %s\nFällig am: %s\n%s\n\nZum Dokument: %s", documentTitle, dueDate, note, appURL) return subject, html, text }