# sendemail

Send an email, using the SMTP server configuration set in 'Tools - Email Configuration'.

## Arguments

Argument | Data Type | Description
to | string | Send to email address (separate multiple addresses with comma)
from | string | From email address
cc | string | CC email addresses - may be empty ""
subject | string | Subject line of email - may be empty ""
body | string | Body of email - may be empty ""
attachment list | string | List of files to attach to email, separated by semi-colons - optional parameter

## Returns

Nothing.

##

## Description

You may use this function at any point in Inaport, but it is particularly useful in the "Exec on data error" expression in tab 2.

The function allows you to build and send an email to any specified user.

## Examples

Example | Description
--- | ---
sendemail("admin@mycomp.com", "import@mycomp.com", "", "Data error", "") | Send an email reporting a data error on a record

## See Also

doall(), log(), logger()