Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 "Raise SMTPException("SMTP AUTH extension not supported by server.")
Respected all,
I have written a code in python to send the keylogger log file to administrator, the said code working fine but after a day when I try to test in production the code raises an exception,
Need your response on urgent basis.
Code...The same code working fine yesterday but today without any change stop working

import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email import encoders

email_user = ''
email_send = ''
subject ='Python'

msg =MIMEMultipart()
msg['From'] = email_user
msg['To'] = email_send
msg['Subject'] = subject

body = 'Hi thre'

filename = 'logs.txt'
attachment = open(filename,'rb')

part =MIMEBase('application','octet-stream')
part.add_header('Content-disposition',"attachment,filename= "+filename)

text= msg.as_string()

server = smtplib.SMTP('',587)

buran wrote Feb-15-2018, 08:56 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.

Please, post the entire traceback that you get. We need to see that whole thing. Do not just give us the last line.
Take a time to read What to include in a post
What's the error? Are we expected to just guess?
What sort of machine does it run on in production? Is that machine set to automatically install updates? What's changed from when it worked to when it didn't?

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Issue with text encoding ans smtplib.SMTP.sendmail() JustSomeUsername383 1 251 Jul-23-2019, 03:15 PM
Last Post: JustSomeUsername383
  Changing a traceback message without a 2nd raise Clunk_Head 1 196 Jul-14-2019, 12:45 AM
Last Post: Gribouillis
  PUT with Basic Auth and urllib2 rootVIII 0 362 Feb-22-2019, 11:25 PM
Last Post: rootVIII
  Passing basic auth data between views nikos 0 230 Feb-13-2019, 09:32 PM
Last Post: nikos
  google-auth requirements.txt strange behavior randalpinto 3 597 Dec-21-2018, 02:03 AM
Last Post: Larz60+
  python 'SMTP debugging server' not starting local error pcsailor 1 446 Nov-26-2018, 10:13 PM
Last Post: micseydel
  module requests, .text extension Truman 1 638 Jul-19-2018, 11:47 PM
Last Post: gontajones
  raise exception instead of return None Skaperen 4 836 Jul-19-2018, 01:27 AM
Last Post: ichabod801
  Python with C extension cross compiling cl10Greg 3 941 Jun-29-2018, 03:20 PM
Last Post: Larz60+
  social-auth-app-django wheel and dependables "six" metalray 2 795 Nov-27-2017, 08:16 AM
Last Post: metalray

Forum Jump:

Users browsing this thread: 1 Guest(s)