smtplib.SMTP.getreply¶
-
SMTP.
getreply
()[source]¶ Get a reply from the server.
Returns a tuple consisting of:
- server response code (e.g. ‘250’, or such, if all goes well) Note: returns -1 if it can’t read response code.
- server response string corresponding to response code (multiline responses are converted to a single, multiline string).
Raises SMTPServerDisconnected if end-of-file is reached.