Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     removed_in_djrill_2(
         "DjrillAdminSite will be removed in Djrill 2.0. "
         "You should remove references to it from your code. "
         "(All of its data is available in the Mandrill dashboard.)"
     )
     super(DjrillAdminSite, self).__init__(*args, **kwargs)
Ejemplo n.º 2
0
    def __init__(self,
                 subject='',
                 body='',
                 from_email=None,
                 to=None,
                 bcc=None,
                 connection=None,
                 attachments=None,
                 headers=None,
                 alternatives=None,
                 cc=None,
                 from_name=None,
                 tags=None,
                 track_opens=True,
                 track_clicks=True,
                 preserve_recipients=None):

        removed_in_djrill_2(
            "DjrillMessage will be removed in Djrill 2.0. "
            "Use django.core.mail.EmailMultiAlternatives instead.")

        super(DjrillMessage,
              self).__init__(subject, body, from_email, to, bcc, connection,
                             attachments, headers, alternatives, cc)

        if from_name:
            self.from_name = from_name
        if tags:
            self.tags = self._set_mandrill_tags(tags)
        if track_opens is not None:
            self.track_opens = track_opens
        if track_clicks is not None:
            self.track_clicks = track_clicks
        if preserve_recipients is not None:
            self.preserve_recipients = preserve_recipients
Ejemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     removed_in_djrill_2(
         "DjrillAdminSite will be removed in Djrill 2.0. "
         "You should remove references to it from your code. "
         "(All of its data is available in the Mandrill dashboard.)"
     )
     super(DjrillAdminSite, self).__init__(*args, **kwargs)
Ejemplo n.º 4
0
    def __init__(self, subject='', body='', from_email=None, to=None, bcc=None,
        connection=None, attachments=None, headers=None, alternatives=None,
        cc=None, from_name=None, tags=None, track_opens=True,
        track_clicks=True, preserve_recipients=None):

        removed_in_djrill_2(
            "DjrillMessage will be removed in Djrill 2.0. "
            "Use django.core.mail.EmailMultiAlternatives instead."
        )

        super(DjrillMessage, self).__init__(subject, body, from_email, to, bcc,
            connection, attachments, headers, alternatives, cc)

        if from_name:
            self.from_name = from_name
        if tags:
            self.tags = self._set_mandrill_tags(tags)
        if track_opens is not None:
            self.track_opens = track_opens
        if track_clicks is not None:
            self.track_clicks = track_clicks
        if preserve_recipients is not None:
            self.preserve_recipients = preserve_recipients