Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/s/t/stratum-mining-HEAD/lib/notify_email.py   stratum-mining(Download)
        try:
            s = smtplib.SMTP(settings.NOTIFY_EMAIL_SERVER)
            if settings.NOTIFY_EMAIL_USERNAME != '':
                if settings.NOTIFY_EMAIL_USETLS:
                    s.ehlo()
                    s.starttls()
                s.ehlo()
                s.login(settings.NOTIFY_EMAIL_USERNAME, settings.NOTIFY_EMAIL_PASSWORD)