EurekaLogSendEmail function

Top  Previous  Next

EurekaLog includes a function called EurekaLogSendEmail, that enables you to send en email to one o more  recipient using the default email client installed on your PC.

 

Syntax of this function is as follows:

 

function EurekaLogSendEmail(const AMailTo, ASubject, ABody, AAttachments: string): Boolean;

 

Note:

You can insert more recipients and attachments, separating them with a ';' or a ',' char.

 

 

Example:

 

 

uses ExceptionLog; // The required unit...

 

var

   Sent: boolean;

begin

   Sent := EurekaLogSendEmail('first@email.com;second@supportemail.com''Test email'

     'This is a test email!''C:\Log.txt;C:\Windows\notepad.exe');

end;