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

Java Mail send email

package com.eastpro.batch.biz;
//import javax.activation.*;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.mail.internet.*;
import javax.mail.*;
import java.io.UnsupportedEncodingException;
import java.util.*;
/**
 * Insert the type's description here. Creation date: (4/13/2001 4:09:33 PM)
 *
 * @author: Administrator
 */
public class JavaMail {
 public java.lang.String host = null;
 protected java.lang.String from;
 protected java.lang.String to;
 protected java.lang.String subject;
 protected String htmlText;
 protected String[] imgsPath = null;
 public javax.mail.Address invalidAddress[] = null;
 public javax.mail.Address validSentAddress[] = null;
 public javax.mail.Address validUnsentAddress[] = null;
 protected java.lang.String replyTo;
 protected java.lang.String cc = null;
 protected java.lang.String bcc;
 protected String contentType = null;
 protected String[] attachFile = null;
 protected String password;
 protected String username;
 public JavaMail() {
 }
 java.lang.String getBcc() {
  return bcc;
 }
 java.lang.String getCc() {
  return cc;
 }
 java.lang.String getReplyTo() {
  return replyTo;
 }
 public String getContentType() {
  return contentType;
 }
 public void setContentType(String contentType) {
  this.contentType = contentType;
 }
 public void setBcc(java.lang.String newBcc) {
  bcc = newBcc;
 }
 public void setCc(java.lang.String newCc) {
  cc = newCc;
 }
 public void setfrom(java.lang.String newfrom) {
  from = newfrom;
 }
 public void setHost(java.lang.String newHost) {
  host = newHost;
 }
 public void setHtmlText(String newHtmlText) {
  ht


相关文档:

专家答疑:解析JAVA中常见异常类型与原因

http://school.itzcn.com/special-spid-50.html
异常跟普通的警告等有一定的区别。当应用程序发生异常时,会中断正在执行的程序的正常指令流。也就是说,发生异常后面的代码将得不到正确的执行。甚至还会触发数据库的回退操作。
  在Java开发平台中,异常包括预定义异常与自定义异常。这两种异常的类型互为补充。作为一 ......

多路归并排序【JAVA实现】

对远远大于内存的数据进行外排序,在多路比较的时候用败者树效率会更高。
package my.sort;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.F ......

Java应用技巧:对于 Cookie 的操作详解


1.设置Cookie
Cookie cookie = new Cookie("key", "value");
cookie.setMaxAge(60);
设置60秒生存期,如果设置为负值的话,则为浏览器进程Cookie(内存中保存),关闭浏览器就失效。
cookie.setPath("/test/test2");
设置Cookie路径,不设置的话为当前路径(对于Servlet来说为request. ......

java调用存储过程

 
A:不带输出参数的
  ---------------不带输出参数的----------------------------------
create procedure getsum
@n int =0<--此处为参数-->
as
declare @sum int<--定义变量-->
declare @i int
set @sum=0
set @i=0
while @i<=@n begin
set @sum=@sum+@i
set @i=@i+1
end
print ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号