摘要: 使用javaMail发送电子邮件需要两个jar包:activation.jar和mail.jar。具体代码如下:index.jsp: 1 <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 3 <html> 4 <head> 5 <title> 阅读全文
posted @ 2013-03-25 21:10 残剑_ 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 530 Authentication requiredcom.sun.mail.smtp.SMTPSendFailedException: 530 Authentication requiredat com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport 阅读全文
posted @ 2013-03-25 21:00 残剑_ 阅读(10647) 评论(2) 推荐(0) 编辑