def envoi_msg(exp, dst, objet, texte, serveur='smtp.safege.net', pwd=None):
    """Sends a simple message by smtp"""
    import smtplib
    from email.mime.text import MIMEText
    from email.mime.multipart import MIMEMultipart
    msg = MIMEMultipart()
    msg['Subject'] = objet
    msg['From'] = exp
    if isinstance(dst, (list, tuple)):
        msg['To'] = ';'.join(dst)
    else:
        msg['To'] = dst
    msg.preamble = 'SUEZ Consulting - DCS 2019'
    msg.attach(MIMEText(texte, 'plain', 'utf-8'))
    s = smtplib.SMTP(timeout=3)
    try:
        s.connect(serveur)
        if pwd is not None:
            s.starttls()
            s.login(exp, pwd)
        s.sendmail(exp, dst, msg.as_string())
        s.close()
        return True
    except:
        return False
