# boolean_smtp_google_send_one_click

> Filters the result of a Google One Click send.

Filter · Tier B · Since 1.0.0

Implemented by the BooleanSMTP Pro add-on. A non-array result, or one missing the `success` key, is treated as Pro not being active.

## Signature

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$result` | `mixed` | Default value; null unless a callback has run. Return `array{success: bool, error?: \WP_Error, status?: string}` describing the outcome. |
| `$rawMime` | `string` | Raw MIME message being sent. |
| `$settings` | `array<string, mixed>` | Decrypted connection settings. |

**Returns** `mixed` — The result to use, or the default to run the built-in behaviour.

## Fires in

- [app/Services/Mailer/Api/GmailApiSender.php:175](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Mailer/Api/GmailApiSender.php#L175) — `BooleanSmtp\Services\Mailer\Api\GmailApiSender::dispatchOneClick()`

## Example

```php
add_filter( 'boolean_smtp_google_send_one_click', function ( $result, string $rawMime, array $settings ) {
    return $result;
}, 10, 3 );
```
