import imaplib
M=imaplib.IMAP4_SSL('imap.gmail.com', 993)
when run on my pc it works and alls fine, but on server it returns: 'module' object has no attribute 'IMAP4_SSL'
well this module clearly needs that attribute.
any clue?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
IMAP4_SSL is only present if Python’s ssl module is available (you can test with
import ssl). Try upgrading your server’s python version, and/or installing the ssl module.