diff --git a/email_mgt.py b/email_mgt.py index 1780062..2f40959 100644 --- a/email_mgt.py +++ b/email_mgt.py @@ -30,20 +30,14 @@ def send_user_account_mail(message, account_mail): tomorrow = datetime.date.today() + datetime.timedelta(days=1) tomorrow_day = tomorrow.strftime("%A") - receiver = ["billardman01@hotmail.com", "cherif.balde@yahoo.fr", "cbalde@mysy-training.com","billardman1@gmail.com",str(account_mail)] - toaddrs = ",".join(receiver) - - print(" mail enoye à : "+toaddrs) - - print("debut envoi mail de test ") # on rentre les renseignements pris sur le site du fournisseur msg = MIMEMultipart("alternative") - msg['Subject'] = 'MySy : test email activation compte ' + msg['Subject'] = 'MySy Training : Activez votre compte ' msg['From'] = 'billardman01@hotmail.com' - msg['To'] = "cherif.balde@yahoo.fr,billardman01@hotmail.com" + msg['To'] = str(account_mail) @@ -60,21 +54,23 @@ def send_user_account_mail(message, account_mail):