Advertisement
Guest User

Untitled

a guest
Oct 11th, 2017
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. creds = Credentials(
  2. username="domain_name\username",
  3. password="password")
  4.  
  5. config = Configuration(server='mail.solutec.fr', credentials=creds)
  6.  
  7. account = Account(
  8. primary_smtp_address="surname.name@lab-solutec.fr",
  9. autodiscover=False,
  10. config = config,
  11. access_type=DELEGATE)
  12.  
  13. SSLError: HTTPSConnectionPool(host='mail.solutec.fr', port=443): Max retries exceeded with url: /EWS/Exchange.asmx (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))
  14.  
  15. from exchangelib.protocol import BaseProtocol, NoVerifyHTTPAdapter
  16. BaseProtocol.HTTP_ADAPTER_CLS = NoVerifyHTTPAdapter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement