-
Mail: a station can write its own invitation email. Settings → Mail has two new fields: "Invitation subject" and "Invitation message". The message is written in markdown and can use
{{station}},{{role}},{{inviter}},{{link}},{{until}},{{androidApp}},{{iosApp}}and{{guide}}. A message is refused when it is saved if:- it leaves out
{{link}} - it names a placeholder that doesn't exist
- it uses a placeholder as a link that isn't an address
- its link shares a line that can be left out
A paragraph or list item whose placeholder has nothing to fill it is left out, so a line about the iPhone app appears once it is in the App Store. Leaving either field empty keeps the station's own wording. A stored message that cannot be used (one seeded by hand, say) is replaced by the station's own, and the log says why.
- it leaves out
-
Mail: Settings → Mail shows the invitation email as the station would send it now, under the form. It uses a sample link, sender and date, and has a switch between the listener and admin versions. The email is drawn in a sandboxed frame with a tab for its plain text, and saving new wording updates it. If the saved wording cannot be used, it says why instead of only writing a line to the log. Behind it is a new route,
GET /settings/mail/invitation/preview, which needsplatform.manage. -
Mail: the invitation email is written in markdown and rendered by a locked-down renderer. Raw HTML in it shows as text, it has no images, and its links can go only to
https,httpormailtoaddresses. The wording is unchanged. The plain-text version now puts the link's address after "Make your account" instead of on a line by itself. This is groundwork for letting a station write its own invitation. -
Mail: the invitation email now links to the Android app on Google Play and to a guide on the deadair site. A listener gets "How listening works" and an admin gets "Your first hour on air". The iPhone app gets its own line once it is on the App Store. Until then the line is left out instead of being sent without a link.