Platform
Docs
Solutions
ContactLog In

Error: smtplib SMTP Server Disconnected

What's Causing This Error?

This error occurs when an issue persists with the SMTP configurations in the Python script. For example, if you use TLS and do not use port 587, you may run into this error.

Solution - Here's How To Resolve It

To resolve the error, you must go through your SMTP configuration and ensure that the variables mentioned below are valid.

  1. SMTP Host.
  2. SMTP Port - 465, 25, 587.
  3. SMTP Protocol - Use SSL if you use Port 465. Use TLS if you use Port 25 or 587.
  4. Username and Password.

Verify the SMTP host, port, and protocol by going through the SMTP provider's documentation.

Other Common SMTPLIB Errors (and Solutions)

View all errors

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Platform

Users

Content

Channels

Sending

Workflows

Preferences

Inbox

Workspaces

Observability

API Status

Changelog

© 2024 Courier. All rights reserved.