コード例 #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))
コード例 #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))
コード例 #3
0
ファイル: models.py プロジェクト: acasimiro/mootiro-maps
 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))
コード例 #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))