def _send_confirmation_ack(self, cancellation_url): sendgrid_send( [self.email], "[HackUPC] You confirmed your attendance!", { '%name%': self.name, '%token%': self.id, '%cancellation_url%': cancellation_url }, 'c4d4d758-974f-437b-af9a-d8532f96d670')
def _send_reminder(self, request): sendgrid_send( [self.email], "[HackUPC] Missing answer", { '%name%': self.name, '%confirmation_url%': self.confirmation_url(request), '%cancellation_url%': self.cancelation_url(request) }, '3150c49d-0b5d-4e75-bf78-0bef3a79bbdc')
def _send_invite(self, request): sendgrid_send( [self.email], "[HackUPC] You are invited!", { '%name%': self.name, '%confirmation_url%': self.confirmation_url(request), '%cancellation_url%': self.cancelation_url(request) }, '513b4761-9c40-4f54-9e76-225c2835b529')
def _send_reimbursement(self, request): sendgrid_send( [self.email], "[HackUPC] Reimbursement granted", { '%name%': self.name, '%token%': self.id, '%money%': self.reimbursement_money, '%country%': self.country, '%confirmation_url%': self.confirmation_url(request), '%cancellation_url%': self.cancelation_url(request) }, '06d613dd-cf70-427b-ae19-6cfe7931c193', from_email= 'HackUPC Reimbursements Team <*****@*****.**>')
def _send_last_reminder(self): sendgrid_send([self.email], "[HackUPC] Invite expires in 24h", { '%name%': self.name, '%token%': self.id, }, '4295b92e-b71d-4b6d-89ec-a4c5fe75a5f6')