Giter Site home page Giter Site logo

voiio / emark Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 1.0 136 KB

eMark↓ – Markdown template based HTML and text emails for Django.

License: BSD 3-Clause "New" or "Revised" License

Python 89.26% HTML 3.83% CSS 6.91%
django email email-template hacktoberfest html markdown python template templates

emark's Issues

eEmailMessage.send()` errors wtih `emark.backends.ConsoleEmailBackend`

Failing test case:

    @pytest.mark.django_db
    def test_send__native_email(self):
        with io.StringIO() as stream:
            backend = backends.ConsoleEmailBackend(stream=stream)
            EmailMessage(
                to=["[email protected]"],
                connection=backend,
            ).send()

        assert Send.objects.count() == 1

Traceback:

tests/test_backends.py:70: in test_send__native_email
    ).send()
.direnv/python-3.11.0/lib/python3.11/site-packages/django/core/mail/message.py:298: in send
    return self.get_connection(fail_silently).send_messages([self])
emark/backends.py:23: in send_messages
    return super().send_messages(email_messages)
.direnv/python-3.11.0/lib/python3.11/site-packages/django/core/mail/backends/console.py:36: in send_messages
    self.write_message(message)
emark/backends.py:77: in write_message
    msg.set_payload(msg.get_payload(0))
../../../.pyenv/versions/3.11.0/lib/python3.11/email/message.py:287: in get_payload
    raise TypeError('Expected list, got %s' % type(self._payload))
E   TypeError: Expected list, got <class 'str'>

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.