Connect to SMTP (SSL or TLS) using Python

后端 未结 2 583

I am attempting to connect to the Gmail SMTP mail server and perform tasks as outlined by the skeleton code given to me. Only the use of sockets is allowed (so

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-31 07:09

    After STARTTLS, call

    clientSocket = ssl.wrap_socket(clientSocket)
    

提交回复
热议问题