SQL Object
 
Syntax
 
SQL.SendLocalMail(ToAddress, MessageContents[, Subject])
 
Description
Sends an e-mail message through the Tradium Mail Server to other Tradium users. If the message is successfully included in the sendqueue, the function returns TRUE, or FALSE otherwise.
 
Parameter
Description
ToAddress
A valid Tradium username. May also be multiple addresses separated by the semicolon sign (;).
Message
Message content. Headers, such as 'Subject:' can also be included in this message.
Subject
Optionally, the subject can be included as a separate parameter.
 
See Also
Example
Sub Main()
 
    Dim sMsg As String
 
    sMsg = InputBox$("Bericht:")
    If Len(sMsg) = 0 Then End
 
    sMsg = "Subject: Test" & vbCrLf & sMsg
 
    Debug.Print SQL.SentLocalMail("dbo;sysbeheer;admin", sMsg)
 
End Sub