Commit 7a570f8f authored by Nicolas Ollinger's avatar Nicolas Ollinger

has_ext('DSN')

parent 02bf5327
...@@ -53,7 +53,7 @@ def envoie(serveur,port,login,mdp,sujet,corps,emet,dest,dobcc,file_path,filename ...@@ -53,7 +53,7 @@ def envoie(serveur,port,login,mdp,sujet,corps,emet,dest,dobcc,file_path,filename
with SMTP_SSL(serveur,port) as server: with SMTP_SSL(serveur,port) as server:
server.login(login,mdp) server.login(login,mdp)
try: try:
if conf['mail']['dsn']=='true': if conf['mail']['dsn']=='true' and server.has_extn('DSN'):
server.send_message(msg,rcpt_options=['NOTIFY=SUCCESS,DELAY,FAILURE']) server.send_message(msg,rcpt_options=['NOTIFY=SUCCESS,DELAY,FAILURE'])
else: else:
server.send_message(msg) server.send_message(msg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment