Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9125073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:43:00+00:00 2026-06-17T06:43:00+00:00

I use django backend to send email (but really django is irrevelant in this

  • 0

I use django backend to send email (but really django is irrevelant in this case), I can login via standalone client, but not via smtplib. I keep getting:

SMTPAuthenticationError (535, '5.7.0 authentication failed')
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:43:01+00:00Added an answer on June 17, 2026 at 6:43 am

    In my case It seems that the server lied it responded following string on hello request:

    >>> conn.ehlo()
    (250,
    'edited.host.name Hello host.name [83.24.32.123], pleased to meet you\nENHANCEDSTATUSCODES\nPIPELINING\n8BITMIME\nSIZE\nDSN\nETRN\nAUTH GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN\nDELIVERBY\nHELP')
    

    in which it annouced it supports CRAM-MD5 authentication method, which it didn’t.

    Since I was in a hurry and resolving this issue with admin would end in missing the deadline, I had to patch SMTP class to prefer PLAIN authentication method. To do this you need to create subclass of SMTP_SSL and override login method, just copy login from SMTP class changing one line.

    Change line that says:

    preferred_auths = [AUTH_CRAM_MD5, AUTH_PLAIN, AUTH_LOGIN]
    

    to:

    preferred_auths = [AUTH_PLAIN, AUTH_LOGIN]
    

    Anyway I posted the patched class: http://pastebin.com/ecL9A3P4.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We use django admin as a client-facing backend, so we need to make it
I am trying to use the simple backend in django-registration 0.8, but my call
im trying to use django.core.mail to send emails using the default backend and it
Guys i would like to use Django as my backend framework and qooxdoo as
I use Django's render_to_response to return an XML document. This particular XML document is
I'm trying to use django, and mongoengine to provide the storage backend only with
I use pylons in my job, but I'm new to django. I'm making an
Getting Django to send an email is nicely explained here using standard settings as
I can set up a storage backend in Django and run collectstatic to generate
I've been encountering quite a few django Apps mentioning 'backend', but don't exactly know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.