\POP3Client

POP3 protocol client.

Summary

Methods
Properties
Constants
connect()
__construct()
get_count()
get_message_headers()
delete_message()
quit()
get_message_subject()
message_with_subject_exists()
delete_messages_with_subject()
get_message_id()
$Connection
No constants found
get_data()
parse_any_type()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$Connection

$Connection : 

Connection.

Type

Methods

connect()

connect(  $Server,   $Login,   $Password,   $TimeOut = 5,   $Port = 110) 

Method connects to server.

Parameters

$Server
$Login
$Password
$TimeOut
$Port

__construct()

__construct(  $Server,   $Login,   $Password,   $TimeOut = 5,   $Port = 110) 

Constructor.

Parameters

$Server
$Login
$Password
$TimeOut
$Port

get_count()

get_count() 

Method returns emails count.

get_message_headers()

get_message_headers(  $i) 

Method returns email's headers.

Parameters

$i

delete_message()

delete_message(  $i) 

Method deletes email.

Parameters

$i

quit()

quit() 

Method terminates session.

get_message_subject()

get_message_subject(  $i) 

Method returns message's subject

Parameters

$i

message_with_subject_exists()

message_with_subject_exists(  $Subject) 

Method returns true if the mail with the specified subject exists.

Parameters

$Subject

delete_messages_with_subject()

delete_messages_with_subject(string  $Subject) 

Method removes all the mails with the specified subject.

Parameters

string $Subject
  • subject of emails to be deleted.

get_message_id()

get_message_id(string  $Headers) : string

Method returns Message-ID.

Parameters

string $Headers
  • email headers.

Returns

string —

Message-ID

get_data()

get_data() 

Method returns data from connection.

parse_any_type()

parse_any_type(  $Line,   $i,   $Headers,   $Type) 

Method parses subject with any prefix.

Parameters

$Line
$i
$Headers
$Type