Comments (3)
What specific issue do you have? Why does Message need to have a connection to Site at all? The API it implements (sending of email) doesn't use the Sites framework, so it's difficult to see how this could be implemented, or why it is wanted. See https://docs.djangoproject.com/en/1.6/topics/email/#django.core.mail.send_mail - it doesn't accept a Site instance.
from django-mailer.
I have got multiple sites and I want to specified messages for which site it is.
It gives more flexibility to know from wich site messages are going or filter for specific site.
Implementation is not that difficult just adding fields on models.py check the way django comments
or redirects
frameworks are done.
Its just enhancement not specific issue.
from django-mailer.
The only way of populating a 'site' field on Message, MessageLog etc. is if you are manually constructing instances of those models yourself. However, that isn't public API. The public API is:
- setting
EMAIL_BACKEND
to"mailer.backend.DbBackend"
- or, changing imports to using
from mailer import sendmail
With either of these, it's impossible to pass in the site object. Having a Message.site
field is only going to be useful if we made the Message
model a public API.
So, on that basis, I don't think this is an enhancement we want to do.
Sorry!
from django-mailer.
Related Issues (20)
- Need to find matching MessageLogs by email address HOT 2
- What is the purpose of send_loop HOT 3
- Allow setting priority without using django-mailer specific functions
- Please start with the "why?" and the benefits HOT 2
- Having problem on django-mailer on using with djoser HOT 6
- Condense logging HOT 2
- send_loop busy loops when there are deferred messages HOT 1
- TypeError sequence item 1: expected str instance, NoneType found HOT 5
- Forecast for the next deploy? HOT 7
- Fix issue with BigAutoField
- More granular control of how many emails to send. HOT 1
- use unittest.mock instead of mock HOT 2
- How to access subject line from db HOT 4
- Stop retrying/deferring after n failures HOT 1
- Hello HOT 2
- lockfile dependency is deprecated
- Webmail Smtp HOT 3
- feature request: release email(s) from admin under interface under Message actions HOT 2
- Issue running runmailer_pg HOT 1
- Define your own database table for the email queue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-mailer.