Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created July 1, 2022 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/383deae6dc8b53d2d5b7c17634910bfe to your computer and use it in GitHub Desktop.
Save brunomichetti/383deae6dc8b53d2d5b7c17634910bfe to your computer and use it in GitHub Desktop.
from django.core.mail import EmailMessage
from drip.drips import DripMessage
class PlainDripEmail(DripMessage):
@property
def message(self):
if not self._message:
email = EmailMessage(self.subject, self.plain, self.from_email, [self.user.email])
self._message = email
return self._message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment