Baan Email attachment via custom report

We have a requirement to send an email with an attachment. Recipient information is in one of the custom tables. When the clicks on continue, a report has to be sent as an attachment in an email to the recipient.

We are on Baan 4c4 and latest service pack and latest porting set.

Thank you!!!