Mail Function Reference

sCreateMail

Mail Function Reference

This function create a new email.

Declare Function sCreateMail Lib "SapphireMail.dll" (_
    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 Long, _
    ByVal lLicence As Long) As Long

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
    A long specifying the folder to save the email to. 1 = Outbox, 0 = Drafts.
  lLicence
    A long specifying the Sapphire Mail licence number.

Return Values

  Zero indicates success. Non-zero indicates failure.