'send email with payment link'

def send_email(self):

    email_args = {u'recipients': self.email_to, u'sender': None, u'subject': self.subject, u'message': self.get_message(), u'now': True, u'attachments': [frappe.attach_print(self.reference_doctype, self.reference_name, file_name=self.reference_name, print_format=self.print_format)]}
    enqueue(method=frappe.sendmail, queue=u'short', timeout=300, async=True, **email_args)
