- 相關推薦
java如何實現(xiàn)后臺自動發(fā)郵件功能
web.xml文件
mailsenderservlet
com.email.MailSenderServlet
server
smtp.163.com
port
25
address
username@163.com
username
username
password
******
validate
true
time
5
1
servlet:
package com.email;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class MailSenderServlet
extends HttpServlet {
private MailSender sender;
private Thread t;
public void init() throws ServletException {
sender = new MailSender();
sender.setRoot(root);
String server = getInitParameter("server");
String port = getInitParameter("port");
String address = getInitParameter("address");
String user
【java如何實現(xiàn)后臺自動發(fā)郵件功能】相關文章:
java通用組合算法如何實現(xiàn)09-12
java圖片處理功能介紹06-23
java如何構造09-21
實現(xiàn)java屏幕抓屏的方法08-24
php實現(xiàn)圖片縮放功能類08-17
java構造函數(shù)實現(xiàn)代碼示例08-23
如何創(chuàng)建java包06-11
Java的就業(yè)前景如何07-28