python qt5 邮箱验证码程序

该博客介绍了一个利用PyQt5库创建的邮箱验证码程序,内容涉及到SMTP和POP3协议的设置与应用,旨在实现邮件验证功能。
摘要由CSDN通过智能技术生成

库:pyqt5  smtplib

邮箱应开启smtp,pop3

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '注册.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from tkinter import dialog
from typing_extensions import Self
from PyQt5 import QtCore, QtGui, QtWidgets
import smtplib
import welcome
from email.mime.text import MIMEText
from email.utils import formataddr
import random

my_sender='logic_1012@163.com'
my_pass = 'KJYXLYHHCBRKUYOA'
my_user=' '
Password=random.randint(100000,999999)
Password=str(Password)
# Password=random.randint(100000,999999)
user_pass=""



class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(60, 20, 101, 51))
        font = QtGui.QFont()
        font.setFamily("Agency FB")
        font.setPointSize(20)
        self.label.setFont(font)
        self.label.setObjectName("label")

        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(110, 130, 91, 51))
        font = QtGui.QFont()
        font.setFamily("Agency FB")
        font.setPointSize(14)
        self.lab
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值