International Sites:





/ PORTUNITY.INFO /


PPOP3 (Enterprise and higher)

Provides a class for querying and accessing POP3 e-mail accounts and the contained e-mails. Farther miscellaneous functions for decoding contained e-mails and attachments are provided.

This object is derived from > PObject.

function PPOP3($sUser,$sPassword="",$sServer="localhost") [CONSTRUCTOR]
The constructor establishes the connection to a POP3 account with the login $sUser and the login code $sPassword on a POP3 server $sServer.

function Close()
Closes the connection to the POP3 server.

function Valid()
Validates if the current object is valid (return value =1) or not (return value=0). The object is valid if a connection to the server could be established successfully by the constructor.

Moreover the object PPOP3 provides the following functions, which have been virtual „inherited“ from PGroup, for access onto the single e-mails saved in the POP3 inbox as well as the function Field for access onto the e-mail’s fields.

Fields:
Subject, String
From, String
Date, DateTime
ReplyTo, String
BodyText, String
BodyHTML, String
Header, String

function CallForEach ($sActionfunction,$sParameter="")
>>> see PGroup::CallForEach

function CallForEachSelected ($sActionfunction,$sParameter="",$fMode=1)
>>> see PGroup::CallForEachSelected

function DeSelectAll ()
>>> see PGroup::DeSelectAll

function DeSelectCurrent ()
>>> see PGroup::DeSelectCurrent

function DeSelectRange ($iVon, $iBis)
>>> see PGroup::DeSelectRange

function EOF()
>>> see PGroup::EOF

function Field($sFieldName)
Reads out the passed field $sFieldName of the current e-mail and returns the field content.

function GetCurrent ()
>>> see PGroup::GetCurrent

function GetCurrentNumber ()
>>> see PGroup::GetCurrentNumber

function GoToNumber ($iNumber)
>>> see PGroup::GoToNumber

function IsCurrentSelected ()
>>> see PGroup::IsCurrentSelected

function ListCount()
>>> see PGroup::ListCount

function MoveFirst()
>>> see PGroup::MoveFirst

function MoveFirstSelected()
>>> see PGroup::MoveFirstSelected

function MoveLast()
>>> see PGroup::MoveLast

function MoveLastSelected()
>>> see PGroup::MoveLastSelected

function MoveNext()
>>> see PGroup::MoveNext

function MoveNextSelected()
>>> see PGroup::MoveNextSelected

function MovePrevious()
>>> see PGroup::MovePrevious

function MovePreviousSelected()
>>> see PGroup::MovePreviousSelected

function RemoveAll ()
>>> see PGroup::RemoveAll

function RemoveCurrent ()
>>> see PGroup::RemoveCurrent

function SelectAll ()
>>> see PGroup::SelectAll

function SelectCurrent ()
>>> see PGroup::SelectCurrent

function SelectRange ($iFrom, $iTo)
>>> see PGroup::SelectRange

Moreover the object PPOP3 provides the following functions, which have been virtual „inherited“ from PGroup, for access onto the file attachments of the respectively current e-mail as well as the function AttachementField for access onto the file attachment and its information fields (file name etc.).

In HTML e-mails the attachment-functions refer to both the HTML mail-internal attachments like picture backgrounds and pictures and to the virtual mail-file attachments. The function "AttachmentIsAttachment" is available for distinction of both types of attachments. Furthermore the true file attachments of the e-mails are preselected and can be addressed with the corresponding functions ("AttachmentMoveNextSelected" etc.) in this way. In the following we documented the functionalities differing from PGroup only in order to avoid redundance.

Fields of file attachments:
Name, String
File, String
Type, String

function AttachmentCallForEach ($sActionfunction,$sParameter="")
>>> see PGroup::CallForEach

function AttachmentCallForEachSelected ($sActionfunction,$sParameter="",$fMode=1)
>>> see PGroup::CallForEachSelected

function AttachmentDeSelectAll ()
>>> see PGroup::DeSelectAll

function AttachmentDeSelectCurrent ()
>>> see PGroup::DeSelectCurrent

function AttachmentDeSelectRange ($iVon, $iBis)
>>> see PGroup::DeSelectRange

function AttachmentEOF()
>>> see PGroup::EOF

function AttachmentField ($sFieldName)
Reads out the passed field $sFieldName of the current e-mail’s current file attachment and returns the content.

function AttachmentGetCurrent ()
>>> see PGroup::GetCurrent

function AttachmentGetCurrentNumber ()
>>> see PGroup::GetCurrentNumber

function AttachmentGoToNumber ($iNumber)
>>> see PGroup::GoToNumber

function AttachmentIsAttachment()
Checks if the current attachment is actually about a file attachment (=1) or is about an internal file belonging to the HTML mail (=0).

function AttachmentIsCurrentSelected ()
>>> see PGroup::IsCurrentSelected

function AttachmentListCount()
>>> see PGroup::ListCount

function AttachmentMoveFirst()
>>> see PGroup::MoveFirst

function AttachmentMoveFirstSelected()
>>> see PGroup::MoveFirstSelected

function AttachmentMoveLast()
>>> see PGroup::MoveLast

function AttachmentMoveLastSelected ()
>>> see PGroup::MoveLastSelected

function AttachmentMoveNext()
>>> see PGroup::MoveNext

function AttachmentMoveNextSelected ()
>>> see PGroup::MoveNextSelected

function AttachmentMovePrevious()
>>> see PGroup::MovePrevious

function AttachmentMovePreviousSelected ()
>>> see PGroup::MovePreviousSelected

function AttachmentRemoveAll ()
>>> see PGroup::RemoveAll

function AttachmentRemoveCurrent ()
>>> see PGroup::RemoveCurrent

function AttachmentSelectAll ()
>>> see PGroup::SelectAll

function AttachmentSelectCurrent ()
>>> see PGroup::SelectCurrent

function AttachmentSelectRange ($iFrom, $iTo)
>>> see PGroup::SelectRange


Continue to recommend this article:

Your Name:

Your eMail-Adress:

eMail of Recipient:

Additional text:







Direct links to the new Portalsuite 2002:

- Productinfos
- Download

- Support overview
- Support forum