SMTP AUTH extension not supported by server in python
<p>I'm using the following def to send email based on status , </p>

<pre><code>def sendMail(fbase, status):
    server = smtplib.SMTP(config["global"]["smtp_server"], config["global"]["smtp_port"])
    server.login(config["global"]["smtp_user"],config["global"]["smtp_pass"])
    server.ehlo()
    server.starttls()
    from_addr = config["global"]["smtp_from"]
    if status == "Success":
        subject = "%s Uploaded sucessfully" % fbase
        msg = "\nHi,\n Video file - %s - uploaded successfully \n Thanks \n  Online Team" % fbase
        to_addr_list = config["global"]["smtp_to_success"]
    else:
        subject = "%s Failed to upload" % fbase
        msg = "\n Hi!\n Failed to upload %s \n Please check the log file immediatly \n Thanks" % fbase
        to_addr_list = config["global"]["smtp_to_failed"]

    header = 'From: %s\n' % from_addr
    header += 'To: %s\n' % ','.join(to_addr_list)
    header += 'Subject: %s\n\n' % subject
    message = header + msg
    server.sendmail(from_addr, to_addr_list, message)
    server.quit()
    logger.info("Mail send for status: %s" %(status))
</code></pre>

<p>i start getting the following error after Ad admins upgrade the exchange </p>

<pre><code>    raise ("SMTP AUTH extension not supported by server.")
SMTPException: SMTP ASMTPExceptionUTH extension not supported by server.
</code></pre>

<p>I added  </p>

<pre><code>server.ehlo()
server.starttls()
</code></pre>

<p>and still getting the same error , </p>

<p>any advise here </p>