Opened 14 years ago

Closed 14 years ago

#13294 closed (invalid)

Worked in full.html into Notifications application

Reported by: richard@… Owned by: nobody
Component: Uncategorized Version: 1.1
Severity: Keywords: notification html
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Django notifications 0.1.4 has the basic plumbing to send HTML emails with the full.html template that can be over-ridden, but it isn't being used at the moment and doesn't appear to be in 0.1.5 either.

Although the html_mailer app is in alpha (http://recurser.com/code/p/django-html-mailer/), it works like a dream and allows the sending of plain-text and HTML emails. I've basically amended the notification send_now method to include an HTML version if the app is installed. Otherwise, just send the notification as normal.

I've attached my amended models.py file. It does also require the presence of an email_body.html file that is used for rendering the notice's full.html, so I've included a basic HTML version of email_body.txt. It'd be great to see this in and I think this completes the functionality hinted at with full.html.

Attachments (2)

empty_body.html (251 bytes ) - added by richard@… 14 years ago.
base template used for all notifications that use the full.html template
models.py (14.9 KB ) - added by richard@… 14 years ago.
Amended models.py that uses HTML Mailer application if it is installed

Download all attachments as: .zip

Change History (4)

by richard@…, 14 years ago

Attachment: empty_body.html added

base template used for all notifications that use the full.html template

by richard@…, 14 years ago

Attachment: models.py added

Amended models.py that uses HTML Mailer application if it is installed

comment:1 by anonymous, 14 years ago

Has patch: unset

comment:2 by Luke Plant, 14 years ago

Resolution: invalid
Status: newclosed

This is the tracker for Django, not Django notifications or any other third party app.

Note: See TracTickets for help on using tickets.
Back to Top