找回密码
 立即注册

QQ登录

只需一步,快速开始

楼主: BMkN

.70后80后90后的暴强区别

 火.. [复制链接]
发表于 2012-11-26 15:59:48 | 显示全部楼层
回帖是必须的,这个可以有!











http://t.sohu.com/u/3374378
发表于 2012-11-27 05:47:46 | 显示全部楼层
共同发展!学习才会进步,谢了












中国最大的手机数码交流论坛,网罗天下手机快讯就在华强网!
华强网 :www.cwccw.com 华强北水货手机报价单
华强北手机报价华强北手机手机导购华强北水货手机报价
发表于 2012-11-27 11:48:59 | 显示全部楼层
发表于 2012-11-27 15:26:56 | 显示全部楼层
永远支持楼主,继续发好贴












警告!再次警告!再三警告!未满18岁禁入 ! 
美女图片 :www.yqkmt.com  丝袜美女 :www.waxss.com
被窝网 :www.asbww.com   被窝电影网: tv.asbww.com
海量高清美图,在被窝里看的东东
发表于 2012-11-27 17:03:09 | 显示全部楼层
在jsp中发送email

    在jsp中发送email

    一、我们可以通过任何支持sun规范中的sun.net.smtp包的JSP引擎(如JSWDK)发送mail。

    (警告:使用内置的internal Sun规范包,这将影响到你的jsp程序的可移植性。)

    以下scriptlet利用SmtpClient类在jsp文件中发送email。

    二、 javaMail是官方的 Java mail API,可参考 http://java.sun.com/PRoducts/javamail/。虽然该API比 sun.net.smtp.SmtpClient更丰富或者说更复杂,但它是可移植的。这里重新创建了一个 MailSender类,它包含了 JavaMail API。如下所示:

    // ms_ prefix is for MailSender class variables

    // str prefix is for String

    // astr prefix is for array of Strings

    // strbuf prefix is for StringBuffers, etc.

    public MailSender(www.sykfp2012.com,www.jnkfp2012.com,www.zzkfp2012.com,

    String strFrom, // sender

    String[] astrTo, // recipient(s)

    String[] astrBCC, // bcc recipient(s), optional

    String strSubject, // subject

    boolean debugging)

    {www.bjkfp2012.com,www.wxkfp2012.com,www.whkfp2012.com,


    ms_strFrom = strFrom; // who the message is from

    ms_astrTo = astrTo; // who (plural) the message is to

    ms_debugging = debugging; // who (plural) the message is to

    // set the host

    Properties props = new Properties();

    props.put(\"mail.smtp.host\", ms_strSMTPHost);

    // create some properties and get the default session

    Session session = Session.getDefaultInstance(props, null);

    session.setDebug(ms_debugging);

    try {

    // create a message

    ms_msg = new MimeMessage(session);

    // set the from

    InternetAddress from = new InternetAddress(strFrom);

    ms_msg.setFrom(from);

    // set the to

    InternetAddress[] address = new InternetAddress[astrTo.length];

    for (int i = 0; i astrTo.length; ++i)

    {

    address[i] = new InternetAddress(astrTo[i]);

    }

    ms_msg.setRecipients(Message.RecipientType.TO, address);

发表于 2012-11-28 09:36:11 | 显示全部楼层
初来乍到,请多多关照。












希尔顿电影新闻网,http://xierdun.org
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部快速回复上一主题下一主题返回列表找客服手机访问

QQ|申请友链|Archiver|小黑屋|手机版|网站地图|谷姐论坛 谷姐提供 ( 渝ICP备2021009247号-1 )

GMT+8, 2024-5-14 05:30

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表