Mail Function Reference

sCreateMail

Mail Function Reference

This function create a new email.

<DllImport("SapphireMail.dll")> _
Public Function sCreateMail(ByVal sTo As String, ByVal sCc As String, _
ByVal sBcc As String, ByVal sSubject As String, ByVal sBody As String, ByVal sAttach As String, _
ByVal sService As String, ByVal lFolder As Integer, ByVal lLicence As Integer) As Integer
End Function

Parameters

  sTo
    A string specifying the email address of the main recipient.
  sCC
    A string specifying the email address of the carbon copy recipient.
  sBcc
    A string specifying the email address of the blink carbon copy recipient.
  sSubject
    A string specifying the email's subject.
  sBody
    A string specifying the message body of the email.
  sAttach
    A string specifying the filename of the file to attach.
  sService
    A string specifying the mail account to use.
  lFolder
    An integer specifying the folder to save the email to. 1 = Outbox, 0 = Drafts.
  lLicence
    An integer specifying the Sapphire Mail licence number.

Return Values

  Zero indicates success. Non-zero indicates failure.