Skip to content

Report_SendMail

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.

Report_SendMail(sSMTPServer, sFromEmail, sFromName, sToEmail, sToName, sSubject, sBody) As Boolean

SMTP mail-server

Email from address

Email from name

Email to address

Email to name

Email subject

Email contents, or the full path of a text file whose contents should be sent.

Boolean, TRUE if function completed successfully.

If bStatus Then bStatus = Report_SendMail("127.0.0.1", "name@alias.com", "Name", "adm@dom.com", "Admin", "Hello", "World!")

Scripting Guidelines

Job_Webreport Constants Package Property Variables