caoquyvu commented on issue #15911:
URL: https://github.com/apache/superset/issues/15911#issuecomment-927585452


   @DwijadasDey I just fixed it with run python code from superset, and check 
what is wrong with my Superset Config
   Superset is bad when telling us what is wrong with config, 
   
   import smtplib
       smtp_host = config["SMTP_HOST"]
       smtp_port = config["SMTP_PORT"]
       smtp_user = config["SMTP_USER"]
       smtp_password = config["SMTP_PASSWORD"]
       smtp_starttls = config["SMTP_STARTTLS"]
       smtp_ssl = config["SMTP_SSL"]
   
       if not dryrun:
           smtp = (
               smtplib.SMTP_SSL(smtp_host, smtp_port)
               if smtp_ssl
               else smtplib.SMTP(smtp_host, smtp_port)
           )
           if smtp_starttls:
               smtp.starttls()
           if smtp_user and smtp_password:
               smtp.login(smtp_user, smtp_password)
           logger.debug("Sent an email to %s", str(e_to))
           smtp.sendmail(e_from, e_to, mime_msg.as_string())
           smtp.quit()
       else:
           logger.info("Dryrun enabled, email notification content is below:")
           logger.info(mime_msg.as_string())


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to