multiple attachments in e-mail export

adeheeradeheer The Netherlands
edited 7:04PM in FastReport 4.0
Hi,

I see that's it's possible to attach more then one file to an email but I can't find it anywhere.
I have an invoice and by new law the general terms ans conditions must be attached with it.

Anyone here tell me how??

Comments

  • gpigpi
    edited 7:04PM
    You may add files in the TfrxMailExport.OnSendMail event
    function TForm1.frxMailExport1SendMail(const Server: string;
      const Port: Integer; const UserField, PasswordField: string; FromField,
      ToField, SubjectField, CompanyField, TextField: WideString;
      FileNames: TStringList; Timeout: Integer; ConfurmReading: Boolean; MailCc,
      MailBcc: WideString): string;
    begin
       FileNames.Add('C:\_Work\test1.fr3=test1.fr3');
       Result := 'OK';
    end;
    

Leave a Comment