易截截图软件、单文件、免安装、纯绿色、仅160KB

Java实现Eamil发送


import java.util.Date;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class SendEmailUtil {
    private static Log log = LogFactory.getLog(SendEmailUtil.class);
    
    public static final String fromMailAddress = "from_test@163.com";
    public static final String mailName = "from_test";
    public static final String mailPassword = "用户密码";
    public static final String mailServer = "smtp.163.com";
    public static final String toMailAddress = "to_test@163.com";
    public static boolean sendEmail(String emailfrom, String emailTo,
            String title, String content) {
        boolean ret = false;
        try {
            log.info("----------------------------start----------------------");
            log.info("emailfrom:" + emailfrom);
            log.info("emailTo:" + emailTo);
            log.info("title:" + title);
            log.info("content:" + content);
            // 建立邮件会话
            Properties props = new Properties(); // 用来在一个文件中存储键-值对的,其中键和值是用等号分隔的,
            // 存


相关文档:

编程, 阅读程序, Java,开源

  最近一两个月以来一直在看java 代码, 看了一些开源的实现, 也看了一些产品中的代码,从这些代码中,学习了一些开源框架的应用(如ActiveMQ,cxf),也学习了这些框架的实现,同时也注意去理解每个类 以及接口的设计,以及设计模式的应用, 关注了一下,每个类,接口的规模,基本上有一些也会非常大,有几千行,有一些 ......

java多态性详解——父类引用子类对象


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体" ......

Map、Set、Iterator迭代详解与Java平台的集合框架


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体" ......

Java中调用存储过程


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体" ......

java循环技巧


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体" ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号