W
wsmp3
Unregistered / Unconfirmed
GUEST, unregistred user!
import java.io.PrintStream;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class SendMail
{
public SendMail()
{
}
public boolean Send(String s, String s1, String s2, String s3)
{
try
{
Properties properties = new Properties();
Session session = Session.getInstance(properties, null);
properties.put("mail.smtp.host", "smtp.jltg.com.cn");
properties.put("mail.smtp.auth", "true");
MimeMessage mimemessage = new MimeMessage(session);
mimemessage.setFrom(new InternetAddress(s));
mimemessage.setRecipient(javax.mail.Message.RecipientType.TO, new InternetAddress(s1));
mimemessage.setSubject(s2);
mimemessage.setSentDate(new Date());
mimemessage.setText(s3);
Transport transport = session.getTransport("smtp");
transport.connect("smtp.jltg.com.cn", 25, "jserkang", "liu911");
transport.sendMessage(mimemessage, mimemessage.getAllRecipients());
transport.close();
System.out.println("/u53D1/u9001/u6210/u529F");
return true;
}
catch(MessagingException messagingexception)
{
System.out.println(messagingexception.toString());
}
return false;
}
public static void main(str args[])
{
SendMail aa=new SendMail();
}
}
import java.util.*;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class SendMail
{
public SendMail()
{
}
public boolean Send(String s, String s1, String s2, String s3)
{
try
{
Properties properties = new Properties();
Session session = Session.getInstance(properties, null);
properties.put("mail.smtp.host", "smtp.jltg.com.cn");
properties.put("mail.smtp.auth", "true");
MimeMessage mimemessage = new MimeMessage(session);
mimemessage.setFrom(new InternetAddress(s));
mimemessage.setRecipient(javax.mail.Message.RecipientType.TO, new InternetAddress(s1));
mimemessage.setSubject(s2);
mimemessage.setSentDate(new Date());
mimemessage.setText(s3);
Transport transport = session.getTransport("smtp");
transport.connect("smtp.jltg.com.cn", 25, "jserkang", "liu911");
transport.sendMessage(mimemessage, mimemessage.getAllRecipients());
transport.close();
System.out.println("/u53D1/u9001/u6210/u529F");
return true;
}
catch(MessagingException messagingexception)
{
System.out.println(messagingexception.toString());
}
return false;
}
public static void main(str args[])
{
SendMail aa=new SendMail();
}
}