use ALINTO smtp relay for production

This commit is contained in:
2021-07-24 16:14:28 +02:00
parent 9cd021f474
commit 5b8c73caea
6 changed files with 14 additions and 15 deletions

View File

@@ -651,7 +651,7 @@ def rdf_view(request):
os.remove(dest)
# developpement ou production
if request.registry.settings["mail.username"].find('@entreprise-dumas.com') > 0:
if request.registry.settings["mondumas.admin_email"].find('@entreprise-dumas.com') > 0:
origin = 'https://gestion.entreprise-dumas.com/rdf_rapport/%s' % norapport
pdfkit.from_url(origin, dest, options=options)
else: