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: Sun, 04 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.