use ALINTO smtp relay for production
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
<td style="width:18%; text-align:right">Montant HT</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4"><hr></td>
|
||||
<td colspan="5"><hr></td>
|
||||
</tr>
|
||||
<!-- clignes de détail du devis -->
|
||||
<div tal:replace="structure dt_html">Les lignes du devis ici</div>
|
||||
|
||||
@@ -184,7 +184,7 @@ def devis_web(request):
|
||||
os.remove(dest)
|
||||
|
||||
# on est en developpement ou en production
|
||||
if request.registry.settings["mail.username"] == "sasdumas@entreprise-dumas.com":
|
||||
if request.registry.settings["mondumas.admin_email"] == "sasdumas@entreprise-dumas.com":
|
||||
origin = 'https://gestion.entreprise-dumas.com/devis_preview/%s' % nodevis
|
||||
pdfkit.from_url(origin, dest, options=options)
|
||||
else:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -165,7 +165,7 @@ def send_mail(request, expediteur, destinataires, objet, corps):
|
||||
recipients=destinataires,
|
||||
html=body)
|
||||
mailer = get_mailer(request)
|
||||
# import pdb;pdb.set_trace()
|
||||
import pdb;pdb.set_trace()
|
||||
msg = ''
|
||||
try:
|
||||
mailer.send_immediately(message)
|
||||
|
||||
Reference in New Issue
Block a user