`
verytiny
  • 浏览: 368208 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
配置  /etc/profile export JAVA_HOME=/usr/java/jdk1.5.0_03 export CATALINA_HOME=/usr/local/tomcat export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$CATALINA_HOME/common/lib/aspectjrt.jar:$CATALINA_HOME/common/lib/commons-dbcp-1.2.1.jar:$CATALINA_HOME/common/lib/mysql-connector- ...
package mail; import javax.mail.Authenticator; import javax.mail.PasswordAuthentication; /**Authenticator接口实现类 :send Mail 的 session 中用到 */ public class AuthenticatorImpl extends Authenticator {  private String name;  private String password;  public AuthenticatorImpl() {   super();  }  public Authent ...

javamail3

    博客分类:
  • J2EE
MailDao.java package mail.dao; import mail.domain.MailBean; public interface MailDao {  Boolean send(MailBean mail); } MailJdbcDao.java package mail.jdbc; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.Date; import java.util.Properties; import javax.activa ...

使用javamail2

    博客分类:
  • J2EE
Mailservice.java package mail.service; import mail.dao.MailDao; import mail.domain.Employee; import mail.domain.MailBean; import mail.jdbc.MailJdbcDao; public class MailService {  private static MailService mailService;  public static MailDao md = new MailJdbcDao();  /** 单例模式 */  public static MailSe ...

如何使用javamail

    博客分类:
  • J2EE
Mailbean.java package mail.domain; import java.io.Serializable; import java.util.ArrayList; import java.util.Iterator; public class MailBean implements Serializable {  private static final long serialVersionUID = 7874212468830537556L;  /** 发件人 */  private String addresser;  /** 收件人集合 */  private Arra ...
newmail.jsp //写邮件ui <%@ page contentType="text/html; charset=gb2312" language="java" import="org.apache.commons.lang.StringUtils, mail.domain.*, mail.service.*, java.util.*,java.io.*" %> <%@ include file="init.jsp"%> <html>  <head>   &l ...
backup c:>mysqldump -h localhost -u admin -ppassword db_name>c:\back.sql restore c:>mysql -h localhost -u admin -ppassword db_name<c:\back.sql  
Global site tag (gtag.js) - Google Analytics