sitelink1 http://whiteship.tistory.com/1814 
sitelink2  
sitelink3  
sitelink4  
sitelink5  
sitelink6  

    private void readEmailListByPop3(String id, String passwd) {

        Properties props = makePOP3Properties();

        Authenticator auth = getAutheticator(id, passwd);

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

 

        Store store = null;

        Folder folder = null;

        try {

            store = session.getStore("pop3");

            store.connect();

            folder = store.getFolder("INBOX");

            folder.open(Folder.READ_ONLY);

            messages = Arrays.asList(folder.getMessages());

        } catch (NoSuchProviderException e) {

            e.printStackTrace();

        } catch (MessagingException e) {

            e.printStackTrace();

        } finally {

            try {

                folder.close(false);

                store.close();

            } catch (MessagingException e) {

                e.printStackTrace();

            }

        }

    }

 

 

 

 

번호 제목 글쓴이 날짜 조회 수
266 한글 인코딩의 이해 2편: 유니코드와 Java를 이용한 한글 처리 file 황제낙엽 2019.05.07 865
265 응답 헤더의 Content-disposition 속성 황제낙엽 2019.04.16 1076
264 StringUtils - 문자열 처리 유틸리티 file 황제낙엽 2019.04.15 693
263 File.length() 에 대하여 황제낙엽 2019.03.24 939
262 File.delete() 와 File.deleteOnExit() 황제낙엽 2019.03.24 3148
261 List to Array / Array to List 황제낙엽 2019.03.24 612
260 Oracle JAVA 유료화에 관련한 최신 기사 황제낙엽 2019.01.23 700
259 Iterator.next() - NoSuchElementException 황제낙엽 2018.10.28 820
258 OracleJDK 유료화 FAQ (Oracle Java 의 유료화에 대한 어느분의 정리) 황제낙엽 2018.10.11 681
257 메일서버(daum.net)에 POP3를 이용하여 메일 가져오기 예제 file 황제낙엽 2018.10.09 1740
256 Sending mail through Java using SMTP of gmail file 황제낙엽 2018.09.13 1145
255 Read or get mails using pop in java (using gmail) file 황제낙엽 2018.09.13 12015
254 Collections.sort() , Comparator 황제낙엽 2018.08.23 767
253 JavaMail - Connecting Gmail pop3 server. 황제낙엽 2018.08.20 1346
252 JavaMail - 네이버 메일 수신하기(POP3) 황제낙엽 2018.08.20 1813
» JavaMail - POP3로 메일 읽어오기 - 단순샘플 황제낙엽 2018.08.20 761
250 [HttpURLConnection, HttpsURLConnection] Response 로 받은 데이터가 압축되어 있는 경우(gzip, deflate) 황제낙엽 2018.08.16 935
249 [HttpURLConnection, HttpsURLConnection] 자바 Http / https 의 결과를 주고받을때 세션을 유지 황제낙엽 2018.08.12 851
248 [HttpURLConnection] 자바(Java) URL 접속 및 세션 관리 file 황제낙엽 2018.08.12 819
247 org.apache.commons.io.FilenameUtils (getExtension) 황제낙엽 2018.04.01 1919