Net_SMTP::getResponse() – Return a 2-tuple containing the last response from the SMTP server.


require_once 'NET/SMTP.php';

array Net_SMTP::getResponse ( )


Return a two-element array containing the last response from the SMPT server.

Return value

returns A two-element array: the first element contains the response code as an integer and the second element contains the response's arguments as a string.


throws no exceptions thrown


This function can not be called statically.

Attempt to disconnect from the SMTP server. (Previous) Send the HELO command. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.