mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +00:00
Envoit du mail avec l'adresse spécifiée dans les preferences
This commit is contained in:
parent
295f7fa5fa
commit
81d2bf233a
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ from django.template import Context, loader
|
|||
from django.db.models.signals import post_save
|
||||
from django.dispatch import receiver
|
||||
|
||||
from preferences.models import GeneralOption
|
||||
|
||||
import users.models
|
||||
|
||||
class Ticket(models.Model):
|
||||
|
@ -54,7 +56,7 @@ class Ticket(models.Model):
|
|||
send_mail(
|
||||
'Nouvelle ouverture de ticket',
|
||||
template.render(context),
|
||||
'grisel-davy@crans.org',
|
||||
GeneralOption.get_cached_value('email_from'),
|
||||
[to_addr],
|
||||
fail_silently = False)
|
||||
|
||||
|
|
Loading…
Reference in a new issue