Utilities object

Description

The utilities object contains misc. functions used by hMailServer Administrator.

Methods

BlowfishDecrypt(string Input)

Decrypts a string from blowfish.

BlowfishEncrypt(string Input)

Encrypts a string to blowfish.

EmailAllAccounts(string sRecipientWildcard, string sFromAddress, string sFromName, string sSubject, string sBody)

Sends an email message to accounts on the server.

GenerateGUID()

Returns a unique GUID

GetMailServer(string EMailAddress)

Returns the mail server handling e-mail for the specified email address.

ImportMessageFromFile(string sFilename, long iAccountID)

Imports a message from a file on disk for delivery or to a specific account.

ImportMessageFromFileToIMAPFolder(string sFilename, long iAccountID, string sIMAPFolder)

Imports a message from a file on disk for delivery or to a specific account.

IsLocalHost(string sHostname)

Checks if the given host name points at localhost.

IsStrongPassword(string Username, string Password)

Returns true if the given password is weak

IsValidDomainName(string sDomainName)

Returns true if the given domain name is valid.

IsValidEmailAddress(string EMailAddress)

Returns true if the given e-mail address is valid. false otherwise.

MakeDependent(string OtherService)

Makes the hMailServer service dependent on another service.

MD5(string Input)

Returns the MD5 hex string for a string.

RunTestSuite(string sTestPassword)

Runs test suite. This will delete all objects on the server.

SHA256(string Input)

Returns the SHA256 hex string for a string.

Search documentation