Product
Docs
Resources
Log In

Error: smtplib SMTP Exception: SMTP auth extension not supported by the server

What's Causing This Error?

This error occurs when you connect to the SMTP server using an invalid port, protocol (SSL or TLS), or if your sender account does not support SMTP authentication.

Solution - Here's How To Resolve It

You can try the actions below to resolve the error.

1. Using the correct port and protocol

Most SMTP servers do not accept port 465 (SSL) as it is a deprecated port for email sending. Many SMTP servers accept port - 587 via TLS. So ensure that you are trying to connect to the server using the correct port (as specified in their documentation). Hence, make sure that you specify "TLS" (or "SLS" based on the port you use) as the SMTP protocol.

2. Enable SMTP authentication

Ensure that you have enabled SMTP authentication for your email sending account. For example, if you use Google SMTP servers to send emails, ensure that you have turned on "Less Secure Sign In Technology" to allow your Python script to authenticate with the Google SMTP server.

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.

Email & push notification

Build your first notification in minutes

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

Email & push notification

Product

Pricing

Providers

Developers

Documentation

API

Libraries

Status

© 2022 Courier. All rights reserved.