Esempio n. 1
0
    def notify(self,
               print_html=None,
               print_format=None,
               attachments=None,
               recipients=None,
               cc=None,
               bcc=None,
               fetched_from_email_account=False,
               print_options=None):
        """Calls a delayed task 'sendmail' that enqueus email in Email Queue queue

		:param print_html: Send given value as HTML attachment
		:param print_format: Attach print format of parent document
		:param attachments: A list of filenames that should be attached when sending this email
		:param recipients: Email recipients
		:param cc: Send email as CC to
		:param fetched_from_email_account: True when pulling email, the notification shouldn't go to the main recipient

		"""
        notify(self,
               print_html,
               print_format,
               attachments,
               recipients,
               cc,
               bcc,
               fetched_from_email_account,
               print_options=print_options)
Esempio n. 2
0
	def notify(self, print_html=None, print_format=None, attachments=None,
		recipients=None, cc=None, fetched_from_email_account=False):
		"""Calls a delayed celery task 'sendmail' that enqueus email in Bulk Email queue

		:param print_html: Send given value as HTML attachment
		:param print_format: Attach print format of parent document
		:param attachments: A list of filenames that should be attached when sending this email
		:param recipients: Email recipients
		:param cc: Send email as CC to
		:param fetched_from_email_account: True when pulling email, the notification shouldn't go to the main recipient

		"""
		notify(self, print_html, print_format, attachments, recipients, cc, fetched_from_email_account)