It would be nicer to have the email template as a separate file like in other scripts, but in the meantime...