def send_confirmation_mail(self, request): """ send async confirmation mail """ key = Locker.deposit(self.id) verification_url = request.build_absolute_uri( reverse('user_verification', args=(key, ))) send_mail_async(title=_('Welcome to MootiroMaps'), receivers=[self.email], message=CONFIRMATION_EMAIL_MSG.format( name=self.name, verification_url=verification_url))
def send_recovery_mail(self, request): """ send async recovery mail """ key = Locker.deposit(self.id) recovery_url = request.build_absolute_uri( reverse('recover_password', args=(key, ))) send_mail_async(title=_('Password recovery'), receivers=[self.email], message=RECOVERY_EMAIL_MSG.format( name=self.name, recovery_url=recovery_url))
def send_confirmation_mail(self, request): """ send async confirmation mail """ key = Locker.deposit(self.id) verification_url = request.build_absolute_uri( reverse('user_verification', args=(key,))) send_mail_async( title=_('Welcome to MootiroMaps'), receivers=[self.email], message=CONFIRMATION_EMAIL_MSG.format( name=self.name, verification_url=verification_url))
def send_recovery_mail(self, request): """ send async recovery mail """ key = Locker.deposit(self.id) recovery_url = request.build_absolute_uri( reverse('recover_password', args=(key,))) send_mail_async( title=_('Password recovery'), receivers=[self.email], message=RECOVERY_EMAIL_MSG.format( name=self.name, recovery_url=recovery_url))