Report_SendMail
Description
Section titled “Description”Sends generic mail.
Recommended for Reporting Job-status.
Job_ReportStatus uses this function to send its report, and takes the sender address from ReplyAddress in the [SendMail] section of Capalib.ini. When you call Report_SendMail yourself, you set the sender with sFromEmail and sFromName.
Syntax
Section titled “Syntax”Report_SendMail(sSMTPServer, sFromEmail, sFromName, sToEmail, sToName, sSubject, sBody) As Boolean
Parameters
Section titled “Parameters”sSMTPServer (String)
Section titled “sSMTPServer (String)”SMTP mail-server
sFromEmail (String)
Section titled “sFromEmail (String)”Email from address
sFromName (String)
Section titled “sFromName (String)”Email from name
sToEmail (String)
Section titled “sToEmail (String)”Email to address
sToName (String)
Section titled “sToName (String)”Email to name
sSubject (String)
Section titled “sSubject (String)”Email subject
sBody (String)
Section titled “sBody (String)”Email contents, or the full path of a text file whose contents should be sent.
Return value
Section titled “Return value”Boolean, TRUE if function completed successfully.
Example
Section titled “Example”If bStatus Then bStatus = Report_SendMail("127.0.0.1", "name@alias.com", "Name", "adm@dom.com", "Admin", "Hello", "World!")