# boolean_smtp_should_store_smtp_transcript

> Filters whether the SMTP transcript of a send is stored as a debug session file.

Filter · Tier B · Since 1.0.0

Consulted for every SMTP send through a connection whose "SMTP Debug Level" is above
0. Off by default: the level only shapes the live diagnostics the Test Email screen shows. Return `true` to keep the transcript (credentials hidden) under `wp-content/uploads/boolean-smtp/debug-sessions/`, one file per email log entry, for seven days; read them with `GET tools/debug-logs` or the log entry's debug session.

## Signature

```php
add_filter( 'boolean_smtp_should_store_smtp_transcript', $callback, 10, 3 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$store` | `bool` | Whether to store the transcript. Default `false`. |
| `$connection` | `\BooleanSmtp\Models\Connection` | The connection the message is sent through. |
| `$level` | `int` | The connection's SMTP debug level (1–4). |

**Returns** `bool` — Whether to store the transcript.

## Fires in

- [app/Services/Mailer/MailerManager.php:1765](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Mailer/MailerManager.php#L1765) — `BooleanSmtp\Services\Mailer\MailerManager::shouldStoreSmtpTranscript()`

## Example

```php
add_filter( 'boolean_smtp_should_store_smtp_transcript', function ( bool $store, \BooleanSmtp\Models\Connection $connection, int $level ) {
    return $store;
}, 10, 3 );
```
