---
url: /flow/guide/scripting-reference/functions/email/sendemail.md
---

# SendEmail

## Declaration

`function SendEmail (aSubject, aMessage : string) : boolean;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
if Data1.EOF then
SendEmail('End of Records','You are at the end of records in Data1 recordset');
end;
```

## Description

Sends an email to the default notification email address (Refer [Email Setting Tab](/flow/guide/administering-flow/configuring-flow/global-setup/general-setup/email-setting-tab/)). aSubject is the subject line while aMessage is the body of the email.
