求大型JAVA程序的原代码

来源:百度知道 编辑:UC知道 时间:2024/06/08 01:34:52
关于任何程序的都可以哦 直接贴这也行 如果嫌麻烦把页面发这也可以 很急

用java 写的发邮件程序的原代码1
Properties properties = System.getProperties();
properties.put("mail.smtp.host","smtp.sina.com.cn");
properties.put("mail.transport.protocol", "smtp");
properties.put("mail.smtp.auth","true");
Session session = Session.getInstance(properties,
new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(strUserName,strPassword);
}
});
try
{