Comments (5)
Please post a full traceback.
from django-mailer.
Traceback (most recent call last):
File "/home/hurbina/src/unab/uddo/manage.py", line 19, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python3.5/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/usr/lib/python3.5/site-packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3.5/site-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3.5/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3.5/site-packages/django/core/management/base.py", line 661, in handle
return self.handle_noargs(**options)
File "/usr/lib/python3.5/site-packages/mailer/management/commands/send_mail.py", line 30, in handle_noargs
send_all()
File "/usr/lib/python3.5/site-packages/mailer/engine.py", line 130, in send_all
email.send()
File "/usr/lib/python3.5/site-packages/django/core/mail/message.py", line 303, in send
return self.get_connection(fail_silently).send_messages([self])
File "/usr/lib/python3.5/site-packages/django/core/mail/backends/smtp.py", line 107, in send_messages
sent = self._send(message)
File "/usr/lib/python3.5/site-packages/django/core/mail/backends/smtp.py", line 121, in _send
message = email_message.message()
File "/usr/lib/python3.5/site-packages/django/core/mail/message.py", line 273, in message
if self.reply_to:
AttributeError: 'EmailMultiAlternatives' object has no attribute 'reply_to'
from django-mailer.
This sounds like an error due to unpickling - you have pickled an EmailMessage object using Django 1.7 then unpickled it using Django 1.8. unpickling doesn't run the initializer, so the EmailMessage never gets that attribute - https://github.com/django/django/blob/master/django/core/mail/message.py#L234
from django-mailer.
I've created a potential fix in a14f717 - #53
Please note - this is completely untested! I did it straight from GitHub interface. Since this is a corner case that is going to be very hard to write a test for, it would be great if you could test it and see if it fixes your issue. If it works, I'll merge it.
from django-mailer.
You were right Luke, and your patch works!
thanks very much for your help,
H.
from django-mailer.
Related Issues (20)
- Fallback email sender HOT 1
- 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
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.