mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
Merge b7a3a6b077 into 40263b6670
This commit is contained in:
commit
da014f5618
4 changed files with 19 additions and 0 deletions
|
|
@ -9,3 +9,10 @@ class EmailTransport:
|
|||
message = email.message_from_bytes(contents)
|
||||
|
||||
return message
|
||||
|
||||
|
||||
class PluggableEmailTransport(EmailTransport):
|
||||
@classmethod
|
||||
def from_uri(cls, uri):
|
||||
raise NotImplemented("The class does not implement {0}.from_uri, and it should. "
|
||||
"Overwrite {0}.from_uri.".format(cls.__name__))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue