Esempio n. 1
0
 def save(self,fail_silently=True):
     seller = Seller.objects.get(user=self.request.user.id)
     msg = SupportMessage(seller=seller, message=self.request.POST['body'])
     msg.save()
     self.recipient_list = ['*****@*****.**']
     send_mail(fail_silently=fail_silently,**self.get_message_dict())
Esempio n. 2
0
 def save(self,fail_silently=True):
     seller = Seller.objects.get(user=self.cleaned_data['to'].user.id)
     msg = SupportMessage(seller=seller, message=self.request.POST['body'])
     msg.save()
     self.recipient_list = [seller.user.email]
     send_mail(fail_silently=fail_silently,**self.get_message_dict())