37 #if defined(_WIN32) && !defined(_WIN64)
334 #include "msos/ptlib/mail.h"
336 #include "unix/ptlib/mail.h"
341 #endif // PTLIB_MAIL_H
int GetErrorCode() const
Get the internal error code for the last error by a function in this mail session.
PBoolean IsLoggedOn() const
Determine if the mail session is active and logged into the mail system.
LookUpResult
Result of a lookup operation with the LookUp() function.
Definition: mail.h:278
PString GetErrorText() const
Get the internal error description for the last error by a function in this mail session.
This class defines an absolute time and date.
Definition: ptime.h:49
LookUpResult LookUp(const PString &name, PString *fullName=NULL)
Look up the specified name and verify that they are a valid address in the mail system.
PBoolean loggedOn
Flag indicating the session is active.
Definition: mail.h:329
An error occurred during the look up.
Definition: mail.h:286
This is an array collection class of PString objects.
Definition: pstring.h:2365
PMail()
Create a mail session.
PBoolean GetMessageHeader(const PString &id, Header &hdrInfo)
Get the header information for a message.
bool PBoolean
Definition: object.h:174
The character string class.
Definition: pstring.h:108
PBoolean MarkMessageRead(const PString &id)
Mark the message as read.
User is a valid, unique name in mail system.
Definition: mail.h:284
This is a list collection class of PString objects.
Definition: pstring.h:2562
PBoolean DeleteMessage(const PString &id)
Delete the message from the system.
virtual PBoolean LogOff()
Log off from the mail system.
PBoolean GetMessageAttachments(const PString &id, PStringArray &filenames, PBoolean includeBody=false, PBoolean markAsRead=false)
Get all of the attachments for a message as disk files.
User name is unknown in mail system.
Definition: mail.h:280
User is ambiguous in mail system.
Definition: mail.h:282
PBoolean SendNote(const PString &recipient, const PString &subject, const char *body)
Send a new simple mail message.
PBoolean LogOn(const PString &username, const PString &password)
Attempt to log on to the mail system using the parameters provided.
PBoolean GetMessageBody(const PString &id, PString &body, PBoolean markAsRead=false)
Get the body text for a message into the body string parameter.
Ultimate parent class for all objects in the class library.
Definition: object.h:2204
This class establishes a mail session with the platforms mail system.
Definition: mail.h:64
PStringArray GetMessageIDs(PBoolean unreadOnly=true)
Get a list of ID strings for all messages in the mail box.