EmailMessages
EmailMessages PHP Methods
cleanMessages(\WMT\Settings\Core $coreSettings, \WMT\MySQL $mysqli) v5
Clean messages by deleting spam messages
PARAMETERS:
$coreSettings = object
$mysqli = object
RETURN VALUE:
void deleteAllMessages() v5
Delete all messages in the que
PARAMETERS:
NONE
RETURN VALUE:
void deleteMessage(int $mNum, string $messageID) v5
Delete a message
PARAMETERS:
$mNum = int, Message number
$messageID = string, Message ID
RETURN VALUE:
bool = True if the message deleted successfully getAttachment(int $mNum, string $messageID, int $aPart) v5
Gets message attachments
PARAMETERS:
$mNum = int, Message number
$messageID = string, Message ID
$aPart = int, Attachment part number
RETURN VALUE:
string = Attachment content getMessage(int $mNum, string $messageID) v5
Gets message contents
PARAMETERS:
$mNum = int, Message number
$messageID = string, Message ID
RETURN VALUE:
string = Message content getTotalMessages() v5
Gets number of total messages in que
PARAMETERS:
NONE
RETURN VALUE:
int = Number of total messages loadMessages(int $page = 1) v5
Load messages per page
PARAMETERS:
$page = int, Page number
RETURN VALUE:
int = Total number of messages processMessages(\WMT\Container $container) v5
Process (send) messages
PARAMETERS:
$container = object
RETURN VALUE:
string = Message content processSpam(\WMT\MySQL $mysqli, $dbh3, $cEmail, int $contactID, $esTitle, $esAdded, $domainName, int $eID, int $memberID, $siteID, $mbox, $i, $version = 5) v5
Process email spam report by blocking, inactivating contacts who has spam emails
PARAMETERS:
$mysqli = object
$dbh3 = object, Database connection
$cEmail = string, Contact email
$contactID = int, Contact ID
$esTitle = string, Email subject
$esAdded = int, email added time as timestamp
$domainName = string, domain name
$eID = int, Email ID
$memberID = int, Member ID
$siteID = int, Site ID
$mbox = object, Message inbox
$i = int, inbox count
$version = int, Site version
RETURN VALUE:
void setSMTPUser(string $smtpUsername) v5
Sets SMTP server username
PARAMETERS:
$smtpUsername = string, SMTP username
RETURN VALUE:
void setSMTPUserPassword(string $smtpUsername, \WMT\MySQL $mysqli) v5
Sets SMTP password for a user account
PARAMETERS:
$smtpUsername = string, SMTP username
$mysqli = object
RETURN VALUE:
void showMessages(\WMT\Format\Number $numberFormat) v5
show all messages as HTML content
PARAMETERS:
$numberFormat = object
RETURN VALUE:
string = all messages as HTML content __construct() v5
initialize email messages utility object
PARAMETERS:
NONE
RETURN VALUE:
voidEmailMessages PHP Variables
🔎︎ %l4610%