\Horde_Smtp_Connection

PHP stream connection to a SMTP server.

NOTE: This class is NOT intended to be accessed outside of the package. There is NO guarantees that the API of this class will not change across versions.

Summary

Methods
Properties
Constants
write()
read()
No public properties found
No constants found
_write()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

write()

write(mixed  $data, mixed  $size = null) 

Writes data to the output stream.

Parameters

mixed $data

String data (or array of string data), or a resource.

mixed $size

If set, the maximum number of octets to send.

Throws

\Horde_Smtp_Exception

read()

read(integer  $size = null) : string

Read data from incoming stream.

Parameters

integer $size

UNUSED: The number of bytes to read from the socket.

Throws

\Horde_Smtp_Exception

Returns

string —

Line of data.

_write()

_write(string  $data) 

Writes data to the output stream.

Parameters

string $data

String data.

Throws

\Horde_Smtp_Exception