diff --git "a/GSON\345\256\214\346\225\264\345\214\205/gson-2.2.4-javadoc.jar" "b/GSON\345\256\214\346\225\264\345\214\205/gson-2.2.4-javadoc.jar" new file mode 100644 index 0000000..ce8fa7d Binary files /dev/null and "b/GSON\345\256\214\346\225\264\345\214\205/gson-2.2.4-javadoc.jar" differ diff --git "a/GSON\345\256\214\346\225\264\345\214\205/gson-2.2.4-sources.jar" "b/GSON\345\256\214\346\225\264\345\214\205/gson-2.2.4-sources.jar" new file mode 100644 index 0000000..30b13f6 Binary files /dev/null and "b/GSON\345\256\214\346\225\264\345\214\205/gson-2.2.4-sources.jar" differ diff --git "a/GSON\345\256\214\346\225\264\345\214\205/gson-2.2.4.jar" "b/GSON\345\256\214\346\225\264\345\214\205/gson-2.2.4.jar" new file mode 100644 index 0000000..9478253 Binary files /dev/null and "b/GSON\345\256\214\346\225\264\345\214\205/gson-2.2.4.jar" differ diff --git a/fastjson-1.2.53.jar b/fastjson-1.2.53.jar new file mode 100644 index 0000000..1a8cd08 Binary files /dev/null and b/fastjson-1.2.53.jar differ diff --git "a/java\347\263\273\345\210\227\347\254\224\350\256\260.docx" "b/java\347\263\273\345\210\227\347\254\224\350\256\260.docx" index c0d301e..e60dae1 100644 Binary files "a/java\347\263\273\345\210\227\347\254\224\350\256\260.docx" and "b/java\347\263\273\345\210\227\347\254\224\350\256\260.docx" differ diff --git "a/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-beanutils-1.8.3.jar" "b/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-beanutils-1.8.3.jar" new file mode 100644 index 0000000..218510b Binary files /dev/null and "b/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-beanutils-1.8.3.jar" differ diff --git "a/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-collections-3.2.1.jar" "b/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-collections-3.2.1.jar" new file mode 100644 index 0000000..c35fa1f Binary files /dev/null and "b/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-collections-3.2.1.jar" differ diff --git "a/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-lang-2.6.jar" "b/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-lang-2.6.jar" new file mode 100644 index 0000000..98467d3 Binary files /dev/null and "b/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-lang-2.6.jar" differ diff --git "a/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-logging-1.1.1.jar" "b/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-logging-1.1.1.jar" new file mode 100644 index 0000000..8758a96 Binary files /dev/null and "b/jsonlib\351\234\200\350\246\201jar\345\214\205/commons-logging-1.1.1.jar" differ diff --git "a/jsonlib\351\234\200\350\246\201jar\345\214\205/ezmorph-1.0.6.jar" "b/jsonlib\351\234\200\350\246\201jar\345\214\205/ezmorph-1.0.6.jar" new file mode 100644 index 0000000..30fad12 Binary files /dev/null and "b/jsonlib\351\234\200\350\246\201jar\345\214\205/ezmorph-1.0.6.jar" differ diff --git "a/jsonlib\351\234\200\350\246\201jar\345\214\205/json-lib-2.4-jdk15.jar" "b/jsonlib\351\234\200\350\246\201jar\345\214\205/json-lib-2.4-jdk15.jar" new file mode 100644 index 0000000..68d4f3b Binary files /dev/null and "b/jsonlib\351\234\200\350\246\201jar\345\214\205/json-lib-2.4-jdk15.jar" differ diff --git "a/\345\217\221\351\200\201\351\202\256\344\273\266/MailUtils.java" "b/\345\217\221\351\200\201\351\202\256\344\273\266/MailUtils.java" new file mode 100644 index 0000000..d81e24d --- /dev/null +++ "b/\345\217\221\351\200\201\351\202\256\344\273\266/MailUtils.java" @@ -0,0 +1,52 @@ +package cn.itcast.estore.utils; + +import java.util.Properties; + +import javax.mail.Authenticator; +import javax.mail.Message; +import javax.mail.MessagingException; +import javax.mail.PasswordAuthentication; +import javax.mail.Session; +import javax.mail.Transport; +import javax.mail.internet.AddressException; +import javax.mail.internet.InternetAddress; +import javax.mail.internet.MimeMessage; +import javax.mail.internet.MimeMessage.RecipientType; + +public class MailUtils { + + public static void sendMail(String email, String subject, String emailMsg) + throws AddressException, MessagingException { + // 1.创建一个程序与邮件服务器会话对象 Session + + Properties props = new Properties(); + props.setProperty("mail.transport.protocol", "SMTP");// 发邮件的协议 + props.setProperty("mail.host", "smtp.126.com");// 发送邮件的服务器地址 + props.setProperty("mail.smtp.auth", "true");// 指定验证为true + + // 创建验证器 + Authenticator auth = new Authenticator() { + public PasswordAuthentication getPasswordAuthentication() { + return new PasswordAuthentication("haohao_itcast", "hao12345");// 发邮件的账户验证登陆 + } + }; + + Session session = Session.getInstance(props, auth); + + // 2.创建一个Message,它相当于是邮件内容 + Message message = new MimeMessage(session); + + message.setFrom(new InternetAddress("haohao_itcast@126.com")); // 设置发送者 + + message.setRecipient(RecipientType.TO, new InternetAddress(email)); // 设置发送方式与接收者 + + message.setSubject(subject); //设置发送主题 + // message.setText("这是一封激活邮件,请点击"); + + message.setContent(emailMsg, "text/html;charset=utf-8"); + + // 3.创建 Transport用于将邮件发送 + + Transport.send(message); + } +} diff --git "a/\345\217\221\351\200\201\351\202\256\344\273\266/mail.jar" "b/\345\217\221\351\200\201\351\202\256\344\273\266/mail.jar" new file mode 100644 index 0000000..9d60d13 Binary files /dev/null and "b/\345\217\221\351\200\201\351\202\256\344\273\266/mail.jar" differ diff --git "a/\345\217\221\351\200\201\351\202\256\344\273\266/\351\202\256\344\273\266\347\232\204\347\233\270\345\205\263\350\275\257\344\273\266/\351\202\256\344\273\266\345\256\242\346\210\267\347\253\257/foxmail65.exe" "b/\345\217\221\351\200\201\351\202\256\344\273\266/\351\202\256\344\273\266\347\232\204\347\233\270\345\205\263\350\275\257\344\273\266/\351\202\256\344\273\266\345\256\242\346\210\267\347\253\257/foxmail65.exe" new file mode 100644 index 0000000..549ba90 Binary files /dev/null and "b/\345\217\221\351\200\201\351\202\256\344\273\266/\351\202\256\344\273\266\347\232\204\347\233\270\345\205\263\350\275\257\344\273\266/\351\202\256\344\273\266\345\256\242\346\210\267\347\253\257/foxmail65.exe" differ diff --git "a/\345\217\221\351\200\201\351\202\256\344\273\266/\351\202\256\344\273\266\347\232\204\347\233\270\345\205\263\350\275\257\344\273\266/\351\202\256\344\273\266\346\234\215\345\212\241\345\231\250/eyoumailserversetup.exe" "b/\345\217\221\351\200\201\351\202\256\344\273\266/\351\202\256\344\273\266\347\232\204\347\233\270\345\205\263\350\275\257\344\273\266/\351\202\256\344\273\266\346\234\215\345\212\241\345\231\250/eyoumailserversetup.exe" new file mode 100644 index 0000000..0142ed2 Binary files /dev/null and "b/\345\217\221\351\200\201\351\202\256\344\273\266/\351\202\256\344\273\266\347\232\204\347\233\270\345\205\263\350\275\257\344\273\266/\351\202\256\344\273\266\346\234\215\345\212\241\345\231\250/eyoumailserversetup.exe" differ diff --git "a/\345\217\221\351\200\201\351\202\256\344\273\266/\351\202\256\344\273\266\347\232\204\347\233\270\345\205\263\350\275\257\344\273\266/\351\202\256\347\256\261\345\256\242\346\210\267\347\253\257\351\205\215\347\275\256.txt" "b/\345\217\221\351\200\201\351\202\256\344\273\266/\351\202\256\344\273\266\347\232\204\347\233\270\345\205\263\350\275\257\344\273\266/\351\202\256\347\256\261\345\256\242\346\210\267\347\253\257\351\205\215\347\275\256.txt" new file mode 100644 index 0000000..bd7e707 --- /dev/null +++ "b/\345\217\221\351\200\201\351\202\256\344\273\266/\351\202\256\344\273\266\347\232\204\347\233\270\345\205\263\350\275\257\344\273\266/\351\202\256\347\256\261\345\256\242\346\210\267\347\253\257\351\205\215\347\275\256.txt" @@ -0,0 +1,33 @@ +ҵУֱͨվշʼdz Sessionڣֶռʼ + ҵгʹһЩʼͻ˳Զȡʼ OutLook FoxMail +1outlookʹ +outlook΢ṩרշʼͻoffice׼֮һշ +win7 ְ֧汾 2007 xp ֧2003 + +һʹoutlook ֱӽ + -- ʼ˻ --- 鿴˻ -- +1) ѡȡʼ pop3 +2) ⣬ʼַдʼ˻ bbb@estore.com +3) д 111 + +4) дշpop3 ַ localhost ------------ pop.sina.com +5) ʼsmtp ַ localhost ------------ smtp.sina.com +6) -- ͷ --- ѡҵķͷSMTPҪ֤ +7) --- ߼ --- ѡڷϱʼ + +win7 ϵͳ ΪIPV6ַ޷ӱ ---- hostsļ 127.0.0.1 localhost ܷ + +2foxmail ʹ +foxmail ʼͻ + +װfoxmail +һӦҪ + -- ½˻ + +1) ַ bbb@estore.com 111 +2) pop3 localhost +smtp localhost + +foxmail Ĭ smtpҪ֤Զʼ + +Ҽ --- ʼ --- ѡÿ15Զʼ \ No newline at end of file