Consultor Eletrônico



Kbase P6450: How to email a report using the Report Builder engine.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/12/2003
Status: Unverified

GOAL:

How to email a report using the Report Builder engine.

FIX:

Email cannot be sent directly from Report Builder or using the Report Builder Engine. The only way to mail the results of a query would be to output the results to a text file and then let that text file be handled by 4GL procedures.

In the engine parameters, that is, if the value for RB-PRINT-DESTINATION is "A", this sends the report output to the file specified in the RB-OUTPUT-FILE parameter. This file can then be passed to other procedures which would handle sending it as email.

For coding this in version 9, for example, see Solution 19647:

Sample code to send email via Internet SMTP with 4GL sockets