---
search:
  tags:
    - administration
    - POST
seo:
  description: >-
    Sends a test email to verify that the… Reference for the POST
    /administration/email-accounts/{id}/test-sending endpoint in the Leadtime
    Public API API.
sidebar:
  badge: POST
  label: Test email sending
title: Test email sending
type: openapi-operation
---
Sends a test email to verify that the account's SMTP configuration is working correctly.

**Purpose:**
- Validates SMTP server connection and authentication
- Tests email delivery functionality
- Helps troubleshoot email sending issues

**Process:**
- Connects to the account's SMTP server using configured credentials
- Sends a test email to the specified recipient address
- Returns success or failure with error details

**Supported Account Types:**
- Works best with IMAP accounts (full SMTP configuration)
- OAuth accounts (Google, Office365) may have limitations depending on token status

**Request:**
- Provide the email address where the test email should be sent

**Response:**
- Success: Confirms email was sent successfully
- Failure: Returns error message describing what went wrong (connection issues, authentication failures, etc.)

<Operation source="api-reference" id="emailaccountscontroller-testemailsending" />
