SQL Object
 
Syntax
 
SQL.SendInternetMail(ToAddress, Message[, Attachment][, SenderName][, Urgent][, Confirm][, Subject])
 
Description
Sends an e-mail message through the Tradium Mail Server over the Internet. If the message is successfully included in the sendqueue, the function returns TRUE, or FALSE otherwise.
 
Parameter
Description
ToAddress
A valid e-mail address. May also be multiple addresses separated by the semicolon sign (;).
note: CC and BCC addresses can also be added here, preceded by a CR/LF sign. See example
Message
Message content. Headers, such as 'Subject:' can also be included in this message
Attachment
Optional. Attachment that should be included. If single file, then a string value with full path and file name of the attachment.
If multiple attachments, specify an Array of String type containing the path and file names.
SenderName
Optional. If entered, this name will be used as the sender in the mail. Example 'sales@mijnbedrijf.nl'. This ignores the part after the @ sign. TRADIUM only allows sender names from the internally registered domain name.
Urgent
Optional. If True then the message is assigned a high priority. Default value is False.
Confirm
Optional. If True then the message is accompanied by a read confirmation request. Default value is False.
Subject
Optional, alternative to the subject included in the message, such as ´Subject:'. If entered, the message itself is not searched for a subject.
 
See Also
Example
 
Sub Main
          
   Dim sMsg As String, sFile As String
 
   sMsg = Inputbox$("Bericht:")
   If Len(sMsg) = 0 Then End
 
   sMsg = "Subject: Test" & vbCrLf & sMsg
 
   sFile = GetFilePath()
 
   Debug.Print SQL.SentInternetMail("info@instalbase.com" & _
                                     vbCRLF & "myccadres@website.com" _ &
                                     vbCRLF & "mybcc@website.com", sMsg, sFile)
 
End Sub