This class represents a response received by the SMTP server. Instances of this class are created by the SMTP class; they should not be directly created by the user. For more information on SMTP responses, view Section 4.2 of RFC 5321
- C
- E
- M
- N
- P
- S
[R] | status | The three digit reply code of the SMTP response |
[R] | string | The human readable reply text of the SMTP response |
Creates a new instance of the Response class and sets the status and string attributes
Parses the received response and separates the reply code and the human readable reply text
Returns a hash of the human readable reply text in the response if it is multiple lines. It does not return the first line. The key of the hash is the first word the value of the hash is an array with each word thereafter being a value in the array
Determines whether the response received was a Positive Intermediate reply (3xx reply code)
Creates a CRAM-MD5 challenge. You can view more information on CRAM-MD5 on Wikipedia: en.wikipedia.org/wiki/CRAM-MD5
Determines whether there was an error and raies the appropriate error based on the reply code of the response
The first line of the human readable reply text
Takes the first digit of the reply code to determine the status type