Giter VIP home page Giter VIP logo

Comments (4)

kootenpv avatar kootenpv commented on September 26, 2024

Were you able to ultimately make it work? I do remember looking at starttls at some point... But don't remember details

from yagmail.

augustasvol avatar augustasvol commented on September 26, 2024

No, I haven't. I really don't know what to do to enable the starttls.

I did:
help(yagmail.SMTP)
Got:

SMTP(user=None, password=None, host='smtp.gmail.com', port=None, smtp_startt
ls=None, smtp_ssl=True, smtp_set_debuglevel=0, smtp_skip_login=False, encoding='
utf-8', oauth2_file=None, soft_email_validation=True, dkim=None, **kwargs)

So there is an option to do something with smtp_starttls, however I have no idea what to pass to it.
Should I pass something from the smtplib?

from yagmail.

kootenpv avatar kootenpv commented on September 26, 2024

It's used like this:

def starttls(self):
    if self.smtp_starttls is None:
        return False if self.ssl else True
    return self.smtp_starttls

so basically if you don't provide anything and ssl=True then it is False

you can explicitly pass False or True yourself

from yagmail.

augustasvol avatar augustasvol commented on September 26, 2024

I see, thank you.

I'll try it and report back if this works.

from yagmail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.