기존엔 한명씩 보내던 것을 묶어서 보내게 된다. InetAddress를 이용해서...

package Part1;

import java.util.Date;
import java.util.Properties;
import java.io.*;
import java.util.Calendar;

import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;

public class Email {

    public static void main(String[] args) {
      
//        String to = "matiari@korea.com";  // hanmail.net으로  이메일 보냄.
        String from = "mati@matiphoto.com"; // epu에서...
        String host = "mail.epu.co.kr";

        Calendar now    = Calendar.getInstance();
        int year      = now.get(Calendar.YEAR);
        int month     = now.get(Calendar.MONTH) + 1;
        int nowdate   = now.get(Calendar.DATE);
        int dayofweek = now.get(Calendar.DAY_OF_WEEK);
        int hour      = now.get(Calendar.HOUR_OF_DAY);
        int min       = now.get(Calendar.MINUTE);
        String szToday = String.valueOf(year) + "." + String.valueOf(month) + "." + String.valueOf(nowdate) + "(" + IntToWeek(dayofweek)  + ") " + String.valueOf(hour) + ":" + String.valueOf(min);
        szToday += " 마티가 전하는 안부인사^^ ";
              
        // Create properties, get Session
        Properties props = new Properties();

        // need to specify which host to send it to
        props.put("mail.smtp.host", host);
       
        // To see what is going on behind the scene
        props.put("mail.debug", "true");
        Session session = Session.getInstance(props);

        try {
            // Instantiatee a message
            Message msg = new MimeMessage(session);
            msg.setFrom(new InternetAddress(from));
    
            InternetAddress[] toAddr = new InternetAddress[10];
            toAddr[0] = new InternetAddress ("jhk149@hanmail.net");  // 현경
            toAddr[1] = new InternetAddress ("jjangee71@nate.com");  // 짱이
            toAddr[2] = new InternetAddress ("mati@matiphoto.com");   // 마티
            toAddr[3] = new InternetAddress ("amante69@hanmail.net");  // 마티
            toAddr[4] = new InternetAddress ("matiari@korea.com");  // 마티
            toAddr[5] = new InternetAddress ("ryooimm@hanmail.net");  // 로사
            toAddr[6] = new InternetAddress ("aqulina@nate.com");  // 아리나
            toAddr[7] = new InternetAddress ("fairyi@nate.com");  // 호선
            toAddr[8] = new InternetAddress ("hwacci@lycos.co.kr"); // 종철
            toAddr[9] = new InternetAddress ("matiari@nate.com"); // 마티
       
            msg.setRecipients(Message.RecipientType.TO, toAddr);
            msg.setSubject(szToday);
            msg.setSentDate(new Date());
           
//            msg.setContent("마티의 첫번째 소식지 <br>아놔~ 졸린거... <br> ㅋㅋㅋ<br><br>싫음 말구... -.-;",  "text/html;charset=ksc5601");
            msg.setContent(readMsgFile().toString(),  "text/html;charset=ksc5601");

            Transport.send(msg);  //메일발송
        }
        catch (MessagingException mex) {
            mex.printStackTrace();
        }
        catch (Exception e) {}
       
    }
   
    // 파일을 읽어서 StringBuffer에 담는다.
 static StringBuffer readMsgFile() {
     FileReader fr = null;
     StringBuffer sBuf = new StringBuffer("Hi~<br>");
     
     try {
      fr = new FileReader("E:/MatiData/TodayMail.txt"); // 내 컴퓨터에 있는 파일을 읽어서 그대로 보냄.
      BufferedReader br = new BufferedReader(fr);
      String readData = br.readLine();
      while ( readData != null){
//      System.out.println(readData);
//      System.out.println("<br>");
       sBuf.append(readData);
       sBuf.append("<br>");
       readData = br.readLine();
      }
      br.close();
     } catch (IOException ex) {
      System.out.println("예외발생: " + ex.getMessage());
      sBuf = null;
     } finally {
      if (fr != null) try { fr.close(); } catch (IOException ex) {}
     }
  return sBuf;
   }
   
 // Integer로 된 요일을 String을 변경.
    static String IntToWeek(int nWeek) {
     String szWeek = new String();
     
     switch (nWeek) {
   case 1 : szWeek = "일"; break;
   case 2 : szWeek = "월"; break;
   case 3 : szWeek = "화"; break;
   case 4 : szWeek = "수"; break;
   case 5 : szWeek = "목"; break;
   case 6 : szWeek = "금"; break;
   case 7 : szWeek = "토"; break;
      default : szWeek = "공"; break;
     }
     return szWeek;
    }
    
 //
}//End of class