from tkinter import *
from validate_email import validate_email
import DNS
window = Tk()
window.geometry("300x200")
window.title("HI WORLD")
lbl = Label(window, text="Write name:")
lbl.grid(column=1, row=0)
lbl2 = Label(window, text="Write lastname:")
lbl2.grid(column=1, row=1)
lbl3 = Label(window, text="Write domain:")
lbl3.grid(column=1, row=2)
ename = Entry(window, width=10)
ename.grid(column=2, row=0)
enamee = Entry(window, width=10)
enamee.grid(column=2, row=1)
edomain = Entry(window, width=10)
edomain.grid(column=2, row=2)
lbox = Listbox(window)
lbox.grid(column=4, row=4)
def test():
name = str(ename.get())
namee = str(enamee.get())
domain = str(edomain.get())
i1 = name + '@' + domain
i2 = name + '.' + namee + '@' + domain
i3 = name + namee + '@' + domain
i4 = namee + '@' + domain
i5 = namee + '.' + name + '@' + domain
i6 = name[0] + namee + '@' + domain
i7 = name[0] + '.' + namee + '@' + domain
i8 = name + namee[0] + '@' + domain
i9 = name + '.' + namee[0] + '@' + domain
i10 = name[0] + namee[0] + '@' + domain
i11 = name[0] + '@' + domain
for val in i1, i2, i3, i4, i5, i6:
is_valid = validate_email(val, verify=True)
if is_valid == True:
lbox.insert(END,val + ":" + 'is_valid')
else:
lbox.insert(END,val + ":" + 'not_valid')
btn = Button(window, text="Checking", command=test)
btn.grid(column = 1, row=3)
window.mainloop()
lbox = Listbox(window)
lbox.grid(column=4, row=4)
def test():
for val in i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11:
is_valid = True
if is_valid == True:
lbox.insert(END,val + ":" + 'is_valid')
else:
lbox.insert(END,val + ":" + 'not_valid')
может там проблема...
если нет то нужен прокси на локалке, чтоб смотреть что ты шлеш и как он отвечает