> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-analytics-query-api-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Why Does an SMTP Service Disconnect Error Occur When Testing an Email Campaign?

> Resolve the SMTP service disconnected error when testing MoEngage email campaigns, typically caused by incorrect email connector credentials.

## Problem

While testing an Email campaign, the following error message occurs:

SMTP service disconnected

<img alt="000.png" src="https://mintcdn.com/moengage-analytics-query-api-docs/d3J9GC--OlIl9xey/images/moengage_070322.png?fit=max&auto=format&n=d3J9GC--OlIl9xey&q=85&s=bcbbe3ac5c3b6ece12026e010b596849" width="988" height="536" data-path="images/moengage_070322.png" />

## Cause

Typically, this error occurs due to incorrect credentials.

## Solution

* The error originates from the SMTP connector.
* Verify whether MoEngage manages the Email connector (SendGrid) or if another provider is used.
