imaplib.IMAP4_SSL()
imaplib.IMAP4_SSL() is a Python function in the Imaplib Module category. Creates an IMAP4 client with SSL encryption. The syntax is imaplib.IMAP4_SSL(host="", port=993, keyfile=None, certfile=None, ssl_context=None). Returns: IMAP4_SSL object. A typical example: imap = imaplib.IMAP4_SSL("imap.gmail.com", 993). A close sibling is imaplib.IMAP4(), which creates an IMAP4 client for reading/managing emails on a server. A close sibling is IMAP4.login(), which logs into the IMAP server with username and password. A close sibling is IMAP4.select(), which selects a mailbox for operation. A close sibling is IMAP4.search(), which searches for messages matching criteria. More about this category: IMAP4 email client — IMAP4, login, list, select, search, fetch, store. Related Imaplib Module entries: imaplib.IMAP4(), IMAP4.login(), IMAP4.select(), IMAP4.search(), IMAP4.fetch(), IMAP4.store(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try imaplib.IMAP4_SSL() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.