每次用户修改、创建或删除数据库条目时,我都在尝试使用 django-notification 向管理员发送电子邮件。问题是,虽然我创建了通知类型并确认它们存在,但发送实际电子邮件时,发送的电子邮件如下所示:
You have received the following notice from example.com:
Entry has been changed. <--- this line being the email content
To see other notices or change how you receive notifications, please go to http://example.com
有没有办法删除该电子邮件正文的第一行和最后一行?我不知道这个默认模板的位置,所以我无法更改它。任何见解将不胜感激!