Giter Club home page Giter Club logo

Comments (5)

spookylukey avatar spookylukey commented on May 30, 2024

Please post a full traceback.

from django-mailer.

ajendrex avatar ajendrex commented on May 30, 2024
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.

spookylukey avatar spookylukey commented on May 30, 2024

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.

spookylukey avatar spookylukey commented on May 30, 2024

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.

ajendrex avatar ajendrex commented on May 30, 2024

You were right Luke, and your patch works!

thanks very much for your help,
H.

from django-mailer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.