コード例 #1
0
 // @Test
 public void test163Send() throws Exception {
   String server = "smtp.163.com";
   String username = "******";
   String password = "******";
   sender = new SendService(server, username, decTools.decode(password));
   String mailUser = "******";
   sender.send(mailUser, mailUser, "test", "this is a test mail from air-mail project.");
 }
コード例 #2
0
 public void testTCSend() throws Exception {
   String server = "bjngsmail04.ap.thmulti.com";
   String mailUser = "******";
   String username = "******"; // + ":" + mailUser;
   String password = "******";
   sender = new SendService(server, username, decTools.decode(password));
   sender.send(mailUser, mailUser, "test", "test");
 }