> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/developers/actions/acpt-send_email.md).

# acpt/send\_email

Fires after ACPT sends a form notification email

**Type:** Action

Fires after ACPT attempts to send a form notification email, whether or not the send actually succeeded.

### Parameters

| Parameter    | Type                                   | Description                                             |
| ------------ | -------------------------------------- | ------------------------------------------------------- |
| `$emailSent` | `bool`                                 | Whether the email was sent successfully                 |
| `$envelope`  | `\ACPT\Utils\Wordpress\Email\Envelope` | The email envelope (recipients, subject, body, headers) |

### Usage

```php
add_action("acpt/send_email", function(bool $emailSent, \ACPT\Utils\Wordpress\Email\Envelope $envelope){
    // log or react to the email result
}, 10, 2);
```
