想用163或者qq给其他人发,必须先开启smtp服务。以163为例子
pro.setProperty("mail.host", "smtp.163.com");
pro.setProperty("mail.smtp.auth", "true");
new PasswordAuthentication("163账号", "163的授权码");
pro.setProperty("mail.host", "smtp.163.com");
pro.setProperty("mail.smtp.auth", "true");
new PasswordAuthentication("163账号", "163的授权码");
2017-10-09
CREATE DATABASE regist_web;
USE regist_web;
CREATE TABLE USER(
uid INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(20) DEFAULT NULL,
PASSWORD VARCHAR(20) DEFAULT NULL,
nickname VARCHAR(20) DEFAULT NULL,
email VARCHAR(30) DEFAULT NULL,
state INT(11) DEFAULT NULL,
CODE VARCHAR(64) DEFAULT NULL
)
USE regist_web;
CREATE TABLE USER(
uid INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(20) DEFAULT NULL,
PASSWORD VARCHAR(20) DEFAULT NULL,
nickname VARCHAR(20) DEFAULT NULL,
email VARCHAR(30) DEFAULT NULL,
state INT(11) DEFAULT NULL,
CODE VARCHAR(64) DEFAULT NULL
)
2017-09-20