package Ġcom . on eli ang . k tx . frame . test . mail Ċ Ċ import Ġcom . on eli ang . k tx . frame . mail . Mail Ċ import Ġcom . on eli ang . k tx . frame . mail . Receive Mail Information Ċ import Ġcom . on eli ang . k tx . frame . mail . Send Mail Information Ċ import Ġcom . on eli ang . k tx . frame . mail . To Address Ċ import Ġcom . on eli ang . k tx . util . file . File Util Ċ Ċ fun Ġmain () Ġ{ ĊĠĠĠ Ġval Ġsend Mail Information Ġ= ĠSend Mail Information () ĊĠĠĠ Ġsend Mail Information . host Ġ= Ġ" smtp . ex mail . qq . com " ĊĠĠĠ Ġsend Mail Information . port Ġ= Ġ 4 6 5 ĊĠĠĠ Ġsend Mail Information . user Ġ= Ġ" li ang wen xi ang @ find ste el . cn " ĊĠĠĠ Ġsend Mail Information . password Ġ= Ġ" ow ab Hi Q vx CC k 4 y Dg " ĊĠĠĠ Ġsend Mail Information . ssl Ġ= Ġtrue ĊĠĠĠ Ġsend Mail Information . subject Ġ= Ġ" test " ĊĠĠĠ Ġsend Mail Information . content Ġ= Ġ" test " ĊĠĠĠ Ġsend Mail Information . from Address Ġ= Ġ" li ang wen xi ang @ find ste el . cn " ĊĠĠĠ Ġsend Mail Information . to Address List Ġ= ĠlistOf ( To Address (" 5 8 2 1 9 9 0 9 8 @ qq . com ")) ĊĠĠĠ ĠMail . send ( send Mail Information ) ĊĠĠĠ Ġ// receive ĊĠĠĠ Ġval Ġreceive Mail Information Ġ= ĠReceive Mail Information () ĊĠĠĠ Ġreceive Mail Information . host Ġ= Ġ" imap . ex mail . qq . com " ĊĠĠĠ Ġreceive Mail Information . port Ġ= Ġ 9 9 3 ĊĠĠĠ Ġreceive Mail Information . user Ġ= Ġ" li ang wen xi ang @ find ste el . cn " ĊĠĠĠ Ġreceive Mail Information . password Ġ= Ġ" ow ab Hi Q vx CC k 4 y Dg " ĊĠĠĠ Ġreceive Mail Information . ssl Ġ= Ġtrue ĊĠĠĠ Ġreceive Mail Information . protocol Ġ= ĠMail . I MAP ĊĠĠĠ Ġval Ġmail Message List Ġ= ĠMail . receive ( receive Mail Information ) ĊĠĠĠ Ġval Ġpath Ġ= Ġ"/ C :/ temp "; ĊĠĠĠ ĠFile Util . create Directory ( path ); ĊĠĠĠ Ġfor Ġ( mail Message Ġin Ġmail Message List ) Ġ{ ĊĠĠĠĠĠĠĠ Ġprintln ( mail Message . from Address ); ĊĠĠĠĠĠĠĠ Ġmail Message . save Access ories ( path ); ĊĠĠĠ Ġ} Ċ }