Comments (8)
I think we can use CharField with 350 length. But I think this is a big subject. And I do not see migrations for South. We are supporting Django from 1.4.
RFC 2822, section 2.1.1 to start. http://www.faqs.org/rfcs/rfc2822.html
There are two limits that this standard places on the number of characters in a line. Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF.
The recommendation for no more than 78 characters in the subject header sounds reasonable. No one wants to scroll to see the entire subject line, and something important might get cut off on the right.
from django-db-mailer.
I have a Django template in subject, with lots of if else
while the template length is abt 1000 chars - compiled length is no larger than 100
if you will limit it to 350 - then what is the point of having subject treated as the template?
All idea of this was to allow site's administrator to edit every bit of email template without getting deep to the code
as for RFC subj length - subj can be multiple lines
and there is no limit on resulting length
and you won't find mail server's default config that will limit the subject's length
from django-db-mailer.
Ok. Please fix the problem with compatibility with old Django versions.
PS - can you show me real use cases for subjects with length > 100 ?)
from django-db-mailer.
will do today... in the evening
merry Christmas btw
from django-db-mailer.
Thx, you too) And with New Year)
from django-db-mailer.
well I have a set of
Start text {{ obj.param1 }}, {% if obj.param2 %} ..... {% elif ....... {%if obj2.param1 .... etc
the result is much shorter, like
New job posted, Title, region or suburb or locality or remote, keywords or expire date ...
and for a/b testing and just for the ease of management it is much easier to have this editable in the admin panel, than via the source code
from django-db-mailer.
Yes, you are right)
from django-db-mailer.
@vosi one thing I have done to get around this, even though it is not ideal since it is no longer editable in the database is that I have added {% include ... %}
statements in the subject
from django-db-mailer.
Related Issues (20)
- load_dbmail_base_templates overwrites existing base templates
- Django 2.0 compatibility HOT 2
- mail_read_tracker fails when celery is not installed
- Move geoip detection from MailLogTrack.save method to view function HOT 2
- MailLogTrack only updates MailLog with no way to know who is the e-mail reader
- What version of Django should be supported HOT 2
- remove redundant setting HOT 1
- Whatsapp new business API HOT 1
- python 3.7 django 2.1 HOT 2
- args to template data with send_db_subscription
- deserialize for queue HOT 1
- Centos pip install db mailer failing Unicode UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 15845: ordinal not in range(128)
- NullBooleanField is deprecated HOT 1
- Migrations
- RemovedInDjango40Warning
- django-db-mailer init breaks Django 1.11 HOT 2
- dbmail/signals.py:149 HOT 1
- Error: <SimpleLazyObject: <User: xx>> is not JSON serializable HOT 2
- https in trackable url HOT 4
- GeoIP2 in Tracking HOT 1
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-db-mailer.