Esempio n. 1
0
 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))
Esempio n. 2
0
 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))
Esempio n. 3
0
 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))
Esempio n. 4
0
 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))