Mailtraq - the Complete Email Server
   

Enstar for Mailtraq email server sales & support
Making world-class Internet technology affordable  

Search for:

Advanced search

DBRead()

Returns the contents of a database field specified by field name, record name and database filename. An empty string is returned if the field does not exist. The database is created if the specified database does not pre-exist.

value := DBRead( database , record , field )

database
The name of the database table
record
The name of the record in the form of a string. The name is not case sensitive
field
The name of the field from which a value is to be retrieved. The field name is not case sensitive
value
The string of data extracted from the database. If the field, record or table do not exist, an empty string is returned
//  The following searches a database for the sig 
// to append to a message, checking first that the 
// message sender is local
If(IsUserLocal(MsgGetSender()),
  Do(
    name := UserOf(MsgGetSender()),
    If(DBRecordExists("sigs.mtq", name),
      MsgAddLine(DBRead("sigs.mtq", name, "sig")
    )
  )
)
Mailtraq Highlights...
 SMTP Server     Mailtraq SMTP email server video IMAP Server     Mailtraq IMAP email Server video
 POP3 Server     Mailtraq POP3 email server video Proxy Server     Mailtraq proxy email server video
 Webmail Server     Mailtraq webmail email server video Mailing-list Server     Mailing list email server video
 Groupware Services     Mailtraq groupware email services video Spam and Virus control     Spam and virus control email server video

 

   Copyright © 2003 - 2011 Enstar Ltd, Enstar LLC & Fastraq Ltd. All rights reserved. Privacy policy.
   Mailtraq® is a registered trademark of Fastraq Limited.