專題製作

886 views
740 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
886
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

專題製作

  1. 1. ஜξࣽ‫מ‬εᏢ ၗૻπำ‫س‬ ஑ ᚒ ᇙ բ ൔ ֋ ႝηແҹԏว‫س‬಍ E-MAIL CLIENT Ꮲ ғǺ‫׹‬ ܰ ᔄ 4940E040 ഋ ௴ Ѷ 4940E005 ࡰ Ꮴ Դ ৣ ǺЦ Ў ࡏ Դ ৣ ύ๮҇୯ 98 ԃ 5 Д
  2. 2. ႝηແҹԏว೬ ᡏ E-MAIL CLIENT Ꮲ ғǺ‫׹‬ ܰ ᔄ Student: Yi-Rong _Du Ꮲ ғǺഋ ௴ Ѷ Student: Chi-hung _Chen ࡰ Ꮴ Դ ৣ ǺЦ Ў ࡏ Advisor: Wen-Yen_Wang ஜξࣽ‫מ‬εᏢ ၗ ૻ π ำ ‫س‬ ஑ ᚒ ൔ ֋ A Report Submitted to Department of Information Engineering Kun Shan University in Partial Fulfillment of the Requirements for the Degree of Bachelor in Information Engineering June 2009 Tainan, Taiwan, Republic of China ύ ๮ ҇ ୯ 97 ԃ 5 Д
  3. 3. i ஑ᚒᇙբൔ֋௤៾ӕཀਜ
  4. 4. ii ႝηແҹԏว೬ ᡏ ᏢғᏢғᏢғᏢғǺǺǺǺ‫׹‬ ܰ ᔄ‫׹‬ ܰ ᔄ‫׹‬ ܰ ᔄ‫׹‬ ܰ ᔄ ǵǵǵǵഋ ௴ Ѷഋ ௴ Ѷഋ ௴ Ѷഋ ௴ Ѷ ࡰ Ꮴ Դ ৣࡰ Ꮴ Դ ৣࡰ Ꮴ Դ ৣࡰ Ꮴ Դ ৣ ǺǺǺǺЦ Ў ࡏЦ Ў ࡏЦ Ў ࡏЦ Ў ࡏ ஜ ξ ࣽ ‫מ‬ ε Ꮲၗ ૻ π ำ ‫س‬ ᄔᄔᄔᄔ ाााा ҁ஑ᚒЬाࢂճҔำԄᇟ‫ق‬ Java ‫܌‬ ග ‫ٮ‬ ‫ޑ‬ Application Programming Interface (API)ȉJavaMail ࣁ Ьाࢎ ᄬ ǴԶ຾ Չ ჴ ଺ Զ‫܌‬ ౢ ғ р ٰ ‫ޑ‬΋ ঺ ᆒ ᙁ Ъ Б ߡ ٬ Ҕ‫ޑ‬ႝ η ແҹ ԏว ೬ ᡏǶ ႝ η ແҹ ჹ ౜ Ϟ ‫ޗ‬ ཮ ς ࿶ ࢂΓ ᆶΓ ϐ ໔ ό ё ‫܈‬લ ‫ޑ‬΋ ঁ ೯ ૻ ౢ ࠔ Ǵ‫؂‬ ঁ Γ ѳ֡ ΋ Ϻ Կ Ͽ ೿ ཮ ԏ‫ډ‬ӳ ൳ Μ ࠾ ႝ η ແҹ ǴԶε ӭኧ Γ ཮ ᒧ ᏷ ٬ Ҕᘤ ំ Ꮤ ໒ ᆛ । ٰ ᎙ ᠐ ႝ η ແҹ Ǵՠ ӧ ໒ ௴ ᆛ । ‫ޑ‬ӕ ਔ Ψ Ѹ ໪ य़ ჹ Ε αᆛ ઠ ‫ޑ‬ቶ ֋ ຎ ื Ϸ ੰ ࢥ ᆶ Е ଭ ำԄ‫࠶ޑ‬ ુ Ǵу ΢ ‫؂‬ ԛ ฦ Ε ೿ ሡ ख़ ፄ ᒡ Ε ஦ ဦ ஏ ዸǴᏤ ठ ᏾ ঁ ᎙ ᠐ ‫ޑ‬ਏ ౗ फ़ եǶ Զႝ η ແҹ ԏว ೬ ᡏ‫ޑ‬р ౜ Ǵ‫ׯ‬ ᡂ Α ೚ ӭ٬ Ҕ‫ޣ‬ ‫ޑ‬ಞ ᄍ Ǵѝ ाӧ ೬ ᡏ΢ ٣ Ӄ ૶ Ꮻ ԏߞ ߞ ጃ‫ޑ‬Տ ֟ ᆶ஦ ဦ ஏ ዸ൩ ё а ᇸ ᚞ ԏว ႝ η ແҹ Ǵፓ ᏾ Ծ ρ ߞ ҹ ‫ޑ‬ϩ ᜪ ኳ ԄǴᆶϷ ਔ ‫ޑ‬ཥ ແҹ ೯ ‫ޕ‬ ǴԶӧ ೬ ᡏ္ Ψ ཮ Ԗ ೚ ӭၟ ႝ η ແҹ ৲ ৲ ࣬ ᜢ ‫ޑ‬ф ૈ ٰ ቚ у ٬ Ҕ‫ޣ‬ ‫ޑ‬π բ ਏ ౗ Ƕ Զҁ஑ᚒᙖ җ JavaMail ำԄᇟ‫ق‬ჹ ႝ η ແҹ ԏว ‫ߡޑ‬ ճ‫܄‬ Ǵ٠ у Ε Б ߡ ٬ Ҕ‫ޣ‬ ӧ ԏว ႝ η ແҹ ਔ ё ᔈ Ҕ‫ޑ‬π ‫ڀ‬ Ǵ೛ ी р ΋ ঺ ᏹ բ ᙁ ዅ Ъ ِ ೲ Б ߡ ᎙ ᠐ ‫ޑ‬ႝ η ແҹ ԏว ೬ ᡏǶ ᜢ ᗖ ӷ : E-mail ClientǵJavaǵJavaMail
  5. 5. iii ᇞ ᖴ ག ᖴ ࡰ Ꮴ Դ ৣ -Ц Ў ࡏ Դ ৣ Ǵჹ ‫ܭ‬ ҁ஑ᚒᇙ բ ‫ޑ‬ҔЈ Ǵό ѝ ග ‫ٮ‬ ஑ᚒ‫ޑ‬ၗ ૻ Б ӛ Ǵ‫׳‬ ೀ ೀ ‫ݙ‬ ཀ ‫ॺך‬ ‫ޑ‬஑ᚒ຾ ࡋ Ǵ‫؂‬ ྽ ‫ॺך‬ ၶ ‫ډ‬౟ ᓍ ਔ Ǵᕴ ࢂ፾ ਔ ૈ ୼ ๏ ϒ ᝊ ຦ ‫ޑ‬ཀ ‫ـ‬ Ǵᡣ ‫ॺך‬ ‫ڙ‬ ੻ ‫ؼ‬ ӭǴ‫׳‬ ाག ᖴ ஜ ξ ࣽ ‫מ‬ ε Ꮲ ɡၗ ૻ π ำ‫س‬ ‫ޑ‬ε ৎ ߏ - ໳ ቼ ౺ ЬҺ ග ‫ٮ‬ ‫سޑ‬ ΢ ֹ ๓ ‫ޑ‬೛ ഢ Ϸ к ‫ى‬ ‫ޑ‬ၗ ྍ ω ૈ ᡣ ҁ஑ᚒӵ ය ֹ ԋ Ƕ
  6. 6. iv Ҟ ᒵ ௤ ៾ ਜ ........................................................................................................................ i ᄔ ा .......................................................................................................................... ii ᇞ ᖴ ..........................................................................................................................iii Ҟ ᒵ .........................................................................................................................iv კӈ ..........................................................................................................................v ಃ ΋ ക ᆣ ፕ .......................................................................................................1 1.1 ࣴ ‫ز‬ ୏ ᐒ ᆶҞ ‫ޑ‬....................................................................................1 1.2 ‫س‬ ಍ཷ ॊ ...............................................................................................1 1.3 ϣ ৒ ཷ ॊ ...............................................................................................1 ಃ Β ക ࣬ ᜢ ϟ ಏ ................................................................................................2 2.1 Java........................................................................................................2 2.2 JavaMail API..........................................................................................4 ಃ Ο ക ‫س‬ ಍ࢎ ᄬ ................................................................................................5 3.1 ‫س‬ ಍ࢎ ᄬ ...............................................................................................5 3 .2 SMTP CLIENT......................................................................................6 3 .3 POP3 CLIENT .......................................................................................6 ಃ Ѥ ക ೬ ᡏф ૈ ࢎ ᄬ ........................................................................................7 4.1 ሡ ‫؃‬ ϩ ‫݋‬ ...............................................................................................7 4.2 ೛ ी ϩ ‫݋‬ ...............................................................................................9 4.3 ෳ ၂ ी Ⴤ .............................................................................................10 ಃ ϖ ക ೬ ᡏࢬ ำკ..........................................................................................10 5.1 ࢬ ำკ .................................................................................................10 5.2 ࢬ ำკᇥ ܴ ..........................................................................................11 5.3 ೛ ी ၸำᆶୢ ᚒ..................................................................................12 5.4 ख़ ाำԄዸ..........................................................................................20 ಃ Ϥ ക ೬ ᡏჴ ౜ ..............................................................................................3 1 6.1 Client ᆄ ೛ ‫ۓ‬ .......................................................................................3 1 6.2 ஌ ߞ ф ૈ .............................................................................................3 2 6.3 ԏߞ ф ૈ .............................................................................................3 3 6.4 த ҔЬԑф ૈ ......................................................................................3 4 6.5 ߕ у ᔞ ਢ ф ૈ ......................................................................................3 6 6.6 ᙁ ܰ ी ᆉ ᐒ ф ૈ ..................................................................................3 8 6.7 Չ ٣ ᏿ ф ૈ ..........................................................................................3 8 ಃ Ύ ക ่ ፕ .....................................................................................................3 9 ୖ Ե Ў ᝘ .................................................................................................................3 9
  7. 7. v კ ӈ კ 1 JavaMail API ϐ ่ ᄬ კ .....................................................................................4 კ 2 E-mail ໺ ᒡ চ ౛ ................................................................................................6 კ 3 ೛ ‫ۓ‬ ᕉ ნ ᡂ ኧ ...................................................................................................8 კ 4 ཥ ቚ CLASSPATH ‫س‬ ಍ᡂ ኧ ᆶ‫ځ‬ ᡂ ኧ ॶ .........................................................8 კ 5 SMTP Client ϟ य़ ..............................................................................................9 კ 6 POP3 Client ϟ य़ ..............................................................................................9 კ 7 SMTP Profile .....................................................................................................9 კ 8 POP3 Profile ......................................................................................................9 კ 9 ೬ ᡏࢬ ำკ ....................................................................................................10 კ 10 ಃ ΋ ‫ހ‬ SMTP Client Ьϟ य़ ........................................................................12 კ 11 ಃ ΋ ‫ހ‬ SMTP Client ϐ ࣬ ᜢ ೛ ‫ۓ‬ .................................................................13 კ 12 SMTP Client ໺ ᒡ ၸำϐ ၁ ಒ ၗ ਑ ...............................................................13 კ 13 ಃ ΋ ‫ހ‬ POP3 Client Ьϟ य़ .........................................................................14 კ 14 ಃ ΋ ‫ހ‬ POP3 Client ϐ ࣬ ᜢ ೛ ‫ۓ‬ ..................................................................14 კ 15 ಃ Β ‫ހ‬ Email Client ϐ ࣬ ᜢ ೛ ‫ۓ‬ .................................................................15 კ 16 ಃ Β ‫ހ‬ Email Client ϐ Ьाϟ य़ .................................................................15 კ 17 ಃ Ο ‫ހ‬ Email Client ϐ Ьाϟ य़ .................................................................16 კ 18 ಃ Ο ‫ހ‬ Email Client ϐ ԏҹ պ .....................................................................16 კ 19 ಃ Ο ‫ހ‬ Email Client ϐ ࣬ ᜢ ೛ ‫ۓ‬ .................................................................17 კ 20 ಃ Ѥ ‫ހ‬ Email Client ϐ ஌ ߞ պ .....................................................................17 კ 21 ಃ Ѥ ‫ހ‬ Email Client ϐ ໺ ଌ ԋ ф ග Ң ..........................................................18 კ 22 ಃ Ѥ ‫ހ‬ Email Client ϐ ԏҹ պ .....................................................................18 კ 23 ಃ Ѥ ‫ހ‬ Email Client ϐ ԏҹ ֹ ԋ ග Ң ..........................................................18 კ 24 ಃ ϖ ‫ހ‬ Email Client ϐ ཥ ቚ ߕ у ᔞ ਢ ф ૈ ..................................................19 კ 25 ಃ ϖ ‫ހ‬ Email Client ϐ ໒ ௴ ߕ у ᔞ ਢ ຎ ื ..................................................19 კ 26 ೛ ‫ۓ‬ ᒧ ໨ ......................................................................................................31 კ 27 Client ᆄ ೛ ‫ۓ‬ ໨ Ҟ .........................................................................................32 კ 28 ኗ ቪ ߞ ҹ ϣ ৒ ...............................................................................................32 კ 29 ແҹ ଌ р ග Ң (֖ ග ᒬ ॣ ኷ )..........................................................................33 კ 30 ᔠ ࢗ ཥ ‫ߞޑ‬ ҹ ...............................................................................................33 კ 31 ແҹ ௗ ԏග Ң (֖ ග ᒬ ॣ ኷ )..........................................................................34 კ 32 ແҹ ᘤ ំ .......................................................................................................34 კ 33 த ҔЬԑф ૈ ϐ ࡪ ່ ....................................................................................35 კ 34 த ҔЬԑᒧ ໨ Ϸ у Ε ࡪ ່ ............................................................................35 კ 35 ߕ у ᔞ ਢ ϐ ࡪ ່ ............................................................................................36
  8. 8. vi კ 36 ߕ у ᔞ ਢ ϐ ᔞ ਢ ໒ ௴ ᒧ ໨ ............................................................................36 კ 37 ᒧ ᏷ ዴ ‫ۓ‬ ϐ ᒧ ໨ ............................................................................................37 კ 38 ߕ у ᔞ ਢ ϐ ౽ ନ ࡪ ່ ....................................................................................37 კ 39 ߕ у ᔞ ਢ ϐ ౽ ନ ග Ң ....................................................................................37 კ 40 ᙁ ܰ ी ᆉ ᐒ ϐ ф ૈ ϟ य़ ................................................................................38 კ 41 Չ ٣ ᏿ ϐ ф ૈ ϟ य़ ........................................................................................38
  9. 9. 1 ಃ ΋ ക ʳ ᆣ ፕ 1 . 1 ࣴ‫୏ز‬ᐒᆶҞ‫ޑ‬ ႝ η ແҹ ӧ ౜ Ϟ ‫ޗ‬ ཮ ࢂঁ ό ё ‫܈‬લ ‫ޑ‬π ‫ڀ‬ Ǵό ᆅ ࢂΓ ᆶΓ ‫ྎޑ‬ ೯ Ҭ ࢬ ‫ࢂ܈‬ ୘ ৎ ቶ ֋ ǵϦ љ Չ ࡹ ࠹ Ѳ ೿ Ӣ ࣁ ႝ η ແҹ ፍ ғ Զᡂ ‫ޑ‬ค ۳ ό ճǴ‫؂‬ ঁ Γ ൳ Я ೿ Ԗ ΋ ঁ а ΢ ‫ޑ‬ႝ η ߞ ጃǴ‫؂‬ Ϻ Կ Ͽ ཮ ԏ‫ډ‬൳ Μ ࠾ ႝ η ແҹ Ǵё ‫ـ‬ ႝ η ແҹ ӧ ΋ ૓ Γ ғ ࢲ ‫ޑ‬ख़ ा‫܄‬ Ǵ‫܌‬ а ҂ ٰ ԏว ႝ η ແҹ ೬ ᡏஒ ԋ ‫؂‬ Ѡ ঁ Γ ႝ တ ΢ Ѹ ഢ ‫ޑ‬ᔈ Ҕ೬ ᡏǴٰ ૈ ቚ у ແҹ ᘤ ំ ‫ޑ‬ਏ ౗ ᆶߡ ճ‫܄‬ Ƕ 1 . 2 ‫س‬ ಍ ཷ ॊ ҁ஑ᚒЬाբ ࣁ SMTP Client‫ک‬POP3 Client‫ٿ‬ ೽ ҽ ࣬ ଺ ่ ӝ ӧ ӕ ΋ ঁ ೬ ᡏ ΢ ٰ ჴ ౜ ԏว ႝ η ແҹ ฻୏ բ Ǵฅ ࡕ ‫ڗ‬ Google mailٰ ଺ ࣁE-mail Client‫ޑ‬Mail serverǴ྽ ٬ Ҕ‫ޣ‬ ஌ ߞ ਔ ཮ ࿶ җSMTP Clientٰ ໺ ଌ ‫ډ‬Mail serverǴԶԏߞ ‫ޣ‬ ཮ ೸ ၸPOP3 Client‫ډ‬Mail serverٰ ଺ ௗ ԏǶ 1 . 3 ϣ ৒ ཷ ॊ ҁ஑ᚒ٬ ҔำԄᇟ‫ق‬Java္ ‫ޑ‬JavaMail‫س‬ ಍ٰ ଺ ࣁ ೬ ᡏ‫ޑ‬Ьࢎ ᄬ ǴԶф ૈ ᆶ ϟ य़ ϯ ࢂҔJava‫܌‬ ኗ ቪ Ǵ೬ ᡏϣ ৒ ନ Α ୷ ҁ‫ޑ‬ԏว ߞ ф ૈ Ѧ Ǵᗋ у Ε Α த ҔЬ ԑǵᙁ ܰ ी ᆉ ᐒ Ϸ ࿤ ԃ Չ ٣ ᏿ ฻Ǿф ૈ Ƕ
  10. 10. 2 ಃ Β ക ʳ ࣬ ᜢ ϟ ಏ 2 . 1 Java ҁ஑ᚒ‫܌‬ ٬ Ҕ‫ޑ‬JavaำԄᇟ‫ق‬ϣ ࡌ Α Ӽ ӄ ф ૈ ǵၠ ѳᆵ ૈ Κ ǵග ‫ٮ‬ ܰ ‫ܭ‬ ຾ Չ ୯ ሞ ϯ ୏ բ ‫ޑ‬π ‫ڀ‬ ǴԶЪ ‫׳‬ ख़ ा‫ࢂޑ‬ǴJava࡭ ុ ᘉ к ‫ځ‬ ᇟ‫ق‬ф ૈ ‫ځک‬ ำԄ৤ Ǵ ள а ೀ ౛ ໺ ಍ᇟ‫ق‬ύ ፏ ӭ҂ ૈ ೀ ౛ ӳ ‫ޑ‬ୢ ᚒǴႽ ࢂӭᆣ (Multithreading)ǵၗ ਑ ৤ Ӹ ‫ڗ‬ ǵᆛ ๎ ำԄ໒ ว ǵϩ թ Ԅी ᆉ [ I ]Ƕ SUN‫ޑ‬Javaᇟ‫ق‬қ Ҝ ਜ ύ ᇥ ܴ Javaᇟ‫ޑق‬੝ ᗺ : 1. ᙁ ൂ (Simple)Ǻ৒ ܰ ኗ ቪ ำԄǴό ሡ ाߏ ਔ ໔ ‫૽ޑ‬ ግ ǴԶૈ ᅈ ‫ى‬ ౜ ж ‫ޑ‬ሡ ‫؃‬ Ƕ 2. ‫ނ‬ ҹ Ꮴ ӛ ‫ޑ‬(Object-Oriented)Ǻ‫ނ‬ ҹ Ꮴ ‫ޑ‬೛ ी ࢂ΋ ᅿ ख़ Ј ӧ ၗ ਑ ‫ک‬ ϟ य़ ‫מޑ‬ ѯ ǹന ߈ ‫ޑ‬ᒿ ක ջ Ҕ(Plug and Play)ҭ ࢂ‫ނ‬ ҹ Ꮴ ӛ ೛ ी ‫ޑ‬ ख़ ᗺ Ƕ 3. ϩ ණ Ԅ‫ޑ‬(Distributed)ǺJavaԖ ΋ ঁ ࡐ ຼ ӄ ‫ޑ‬ำԄ৤ ǴЪ ࡐ ৒ ܰ Ӧ ᆶ HTTP ‫ک‬ FTP ฻ TCP/IP ೯ ૻ ‫ڐ‬ ‫ۓ‬ ࣬ ଛ ӝ Ƕ Java ᔈ Ҕ ำ Ԅ (Applications)ૈ ӧ ᆛ ၡ ΢ ໒ ௴ Ϸ ೱ ่ ٬ Ҕ‫ނ‬ ҹ Ǵ൩ ӵ ӕ ೸ ၸURL ೱ ่ ٬ Ҕ΋ ঁ ୔ ୱ ᔞ ਢ ‫س‬ ಍(Local File System)Ƕ 4. ம ໧ ‫܄‬ ‫ޑ‬ (Robust)Ǻҗ Java ‫܌‬ ኗ ቪ р ‫ޑ‬ำԄૈ ӧ ӭᅿ ௃ ‫ݩ‬ Π ୺ Չ Զ‫ڀ‬ Ԗ ‫ځ‬ ᛙ ‫ۓ‬ ‫܄‬ JavaᆶC/C++ന ε ό ӕ ᗺ ࢂJavaԖ ΋ ঁ ࡰ ኱ Ꮤ ኳ ࠠ (Pointer Model) ٰ ௨ ନ ૶ Ꮻ ᡏ೏ ᇂ ቪ (Overwriting Memory)‫ک‬ၗ ਑ ྄ ཞ (Corrupting Data)‫ޑ‬ё ૈ ‫܄‬ [ I ]Ƕ 5. Ӽ ӄ ‫܄‬ ‫ޑ‬(Secure)ǺJavaᏱ Ԗ ኧ ঁ ໘ ቫ ‫ޑ‬ϕ ᙹ (Interlocking)ߥ ៈ ௛ ࡼǴૈ Ԗ ਏ Ӧ ٛ З ੰ ࢥ ‫ߟޑ‬ Ε ‫ک‬ઇ ᚯ Չ ࣁ ‫ޑ‬ว ғ Ƕ
  11. 11. 3 6. ࢎ ᄬ ύ ҥ ‫܄‬ ‫ޑ‬(Architecture Neutral)ǺJava‫ޑ‬ጓ ᝿ Ꮤ ౢ ғ ΋ ᅿ ่ ᄬ ύ ҥ ‫ނ‬ ҹ ‫ޑ‬ᔞ ਢ ਱ Ԅ(Object File Format)ǹ೭ ٬ ள ጓ ᝿ ዸள а ӧ ࡐ ӭ ᅿ ೀ ౛ Ꮤ ύ ୺ Չ Ƕ 7. ё ឫ ஥ ‫܄‬ ‫ޑ‬(Portable)ǺำԄ৤ ឦ ‫ܭ‬ ‫س‬ ಍‫ޑ‬΋ ೽ ҽ ǴѬ ‫ۓ‬ က Α ΋ ٤ ё ឫ ஥ ‫ޑ‬ϟ य़ ǴJavaҁ‫ي‬ ‫ڀ‬ ഢ Ԗ ࡐ ӳ ‫ޑ‬ё ឫ ஥ ‫܄‬ Ƕ 8. ှ ᝿ ‫ޑ‬(Interpreted)ǺJavaှ ᝿ Ꮤ ૈ ‫ޔ‬ ௗ Ӧ ӧ Һ Ֆ ᐒ Ꮤ ΢ ୺ Չ Java Տ ϡ ዸ(Bytecodes)ǴԜ ӧ ຾ Չ ำԄೱ ่ ਔ Ǵਔ ໔ ‫ޑ‬࿯ ࣪ Ǵ೭ ჹ ‫ܭ‬ ᕭ อ ำԄ‫ޑ‬໒ ว ၸำǴԖ ವ ε ‫ޑ‬շ ੻ Ƕ 9. ଯ ਏ ૈ ‫ޑ‬ (High Performance)ǺJavaՏ ϡ ዸِ ೲ Ӧ ૈ ೏ ᙯ ඤ ԋ ᐒ ఓ ዸ(Machine Code)Ƕ 10. ӭ୺ Չ ᆣ ‫ޑ‬ (Multithreaded)ǺJavaᇟ‫ڀق‬ Ԗ ӭख़ ጕ Ս ‫ޑ‬ф ૈ Ǵ೭ ჹ ‫ܭ‬ ϕ ୏ ӣ ᔈ ૈ Κ Ϸ ջ ਔ ୺ Չ Չ ࣁ ࢂԖ շ ੻ ‫ޑ‬Ƕ 11. ୏ ᄊ ‫ޑ‬ (Dynamic)ǺJavaКC‫܈‬C++ᇟ‫׳ق‬ ‫ڀ‬ Ԗ ୏ ᄊ ‫܄‬ Ǵ‫׳‬ ૈ Ӣ ᔈ ਔ ‫څ‬ ӧ ᡂ ‫ޑ‬ᕉ ნ ǴJavaό ཮ Ӣ ำԄ৤ ‫׳ޑ‬ ཥ ǴԶѸ ໪ ख़ ཥ ጓ ᝿ ำԄ
  12. 12. 4 2 . 2 JavaMail API კ 1 JavaMail API ϐ่ ᄬ კ JavaMailࢂ΋ ঁ Ҕ‫ܭ‬ ࡌ ҥ ແҹ ‫س‬ ಍ኳ ࠠ ‫ܜޑ‬ ຝ APIǴAPIග ‫ٮ‬ Α ΋ ঁ ᐱ ҥ ‫ޑ‬ ѳѠ ᆶ‫ڐ‬ ‫ۓ‬ ࢎ ᄬ Ǵё а Ҕٰ ࡌ ҥ ແҹ ᆶૻ ৲ ໺ ሀ ᔈ ҔำԄǶ‫ॺך‬ ё ҔѬ ٰ ࡌ ҥ ӵ EudoraǵFoxmailǵMS Outlook Express΋ ૓ ‫ޑ‬ແҹ ҔЊ ж ౛ ำ‫ׇ‬ ȐMail User Agent, ᙁ ᆀ MUAȑǶ Զό ࢂႽ SendMail‫ޣ܈‬ ‫ځ‬ Ѭ ‫ޑ‬ແҹ ໺ ᒡ ж ౛ ȐMail Transfer AgentǴ ᙁ ᆀ MTAȑำ‫ׇ‬ ٗ ኬ ё а ໺ ଌ ǵሀ ଌ ǵᙯ ว ແҹ [ II ]Ƕவ ќ Ѧ ΋ ঁ ‫ف‬ ࡋ ٰ ࣮ Ǵ‫ך‬ ॺ ೭ ٤ ႝ η ແҹ ҔЊ В த ҔMUAำ‫ׇ‬ ٰ ᠐ ቪ ແҹ ǴԶMUA٩ ᒘ ๱ MTAೀ ౛ ແҹ ‫ޑ‬ሀ ଌ Ƕ JavaMailࢂSUNว Ѳ ‫ޑ‬ೀ ౛ ႝ η ແҹ ‫ޑ‬ᔈ Ҕำ‫ׇ‬ ௗ α[III]ǴѬ Ⴃ ࿼ Α ΋ ٤ ന த Ҕ‫ޑ‬ແҹ ໺ ଌ ‫ڐ‬ ᝼ ‫ޑ‬ჴ ౜ Б ‫ݤ‬ Ǵ٠ Ъ ග ‫ٮ‬ Α ࡐ ৒ ܰ ‫ޑ‬Б ‫ݤ‬ ѐ ፓ ҔѬ ॺ Ƕՠ Ҟ ߻ Ѭ ᗋ ؒ Ԗ ೏ JDKх ֖ Ƕ Ӣ Ԝ ሡ ाவ SUN‫۔ޑ‬ Б ᆛ ઠ ΢ Π ၩ ‫ډ‬JavaMailᜪ Ў ҹ х Ƕ ନ Ԝ ϐ Ѧ ᗋ ሡ ाSUN‫ޑ‬JAF(JavaBeans Activation Framework )Ǵց ߾ JavaMailஒ ό ૈ ၮՉ Ƕ
  13. 13. 5 JavaMail‫ځ‬ ᜢ ᗖ ำԄዸӵ Π Ǻ javax.mail.Session //ແҹ ೱ ጕ ᆅ ౛ javax.mail.Authenticator //Ӽ ӄ ᇡ ᛾ javax.mail.Message //ແҹ ϣ ৒ ೛ ‫ۓ‬ javax.mail.intenet.MimeMessage javax.mail.Part javax.mail.Multipart javax.mail.Address //‫ڗ‬ ள ແҹ Ӧ ֟ javax.mail.internet.InternetAddress javax.mail.internet.NewsAddress javax.mail.Store //‫ڗ‬ளᔞਢ֨ javax.mail.URLName javax.mail.Folder //‫ڗ‬ளߞҹၗ਑ javax.mail.Transport ಃ Ο ക ʳ ‫س‬ ಍ ࢎ ᄬ 3 . 1 ‫س‬಍ࢎᄬ ҁ ஑ ᚒ ϐ᏾ ᡏ ‫س‬ ಍ ࢎ ᄬ ࢂа JavaMailϐAPIբ ࣁѳ Ѡ Ǵӆ ҔJavaำԄ ᇟ ‫ق‬ ϟ य़ ϯ ǴԶЬ ा Ҕ‫ډ‬ ‫ٿޑ‬ ঁ ‫س‬ ಍ ࣁǺ SMTP Client POP3 Client ႝ η ແҹวଌ ೬ ᡏ Ь ा җ ஌ ߞ‫ޣ‬ႝ တ җ SMTP Clientวଌ E-mailԿMail ServerǴԶԏ ߞ‫ޣ‬࿶ җ POP3 Clientѐ வ Mail Serverௗ ԏ E-mailǶѝ ा ᏾ ӝ ೭ ‫ٿ‬ ঁ ‫س‬ ಍ ൩ ё а ‫ޔ‬ ௗ Ҕൂ ΋೬ ᡏ բ ԏ วႝ η ແҹ‫୏ޑ‬ բ
  14. 14. 6 ʳ კ 2 E-mail ໺ ᒡ চ ౛ ˆ ˁ ˅ SMTP CLIENTʳ SMTPᙁൂ ແҹ໺ ᒡ ‫ڐ‬ ᝼ ‫ۓ‬က Αሀ ଌ ແҹ‫ޑ‬ᐒ‫ڋ‬ Ƕ‫ך‬ ॺ ஒ٬ Ҕ୷ ‫ܭ‬ JavaMail ‫ޑ‬ำ‫ׇ‬ ᆶᏢ ਠ ‫܈‬ ‫ޣ‬ISP‫ޑ‬SMTPܺ ୍ ᆄ຾ Չ ೯ ૻ Ƕ೭ ঁ SMTPܺ ୍ ᆄஒແҹᙯ ว‫ډ‬ ௗ ԏ ‫ޑޣ‬SMTPܺ ୍ ᆄǴ‫ޔ‬ Կന ࡕ೏ ௗ ԏ ‫ޣ‬೯ ၸ POP‫܈‬ ‫ޣ‬IMAP‫ڐ‬ ᝼ ᕇ ளǶ೭ ٠ ό ሡ ा SMTPܺ ୍ ᆄ٬ ҔЍ ࡭ ௤ ៾ ‫ޑ‬ແҹᙯ วǴՠ ࢂࠅ ा ‫ݙ‬ ཀ SMTPܺ ୍ ᆄ‫҅ޑ‬ዴ ೛ ࿼ȐSMTPܺ ୍ ᆄ‫ޑ‬೛࿼ᆶJavaMailϐAPIค ᜢ ȑ Ƕ ˆ ˁ ˆ POP3 CLIENTʳ POP‫ޑ‬ӄ ᆀ ࢂPost Office ProtocolǴջ ແҹ‫ڐ‬ ‫ۓ‬ǴҔ‫ܭ‬ ႝ η ແҹ‫ޑ‬ௗ ԏ ǴѬ ٬ ҔTCP‫ޑ‬110ೱ ௗ ୵ Ƕ౜ ӧத Ҕ‫ࢂޑ‬ಃΟ‫ހ‬Ǵ‫܌‬ а ᙁᆀ ࣁPOP3ǶPOP3ϝ ௦ Ҕ Client/Serverπ բ ኳ Ԅ ǴClient೏ ᆀ ࣁ࠼ Њ ᆄǴ΋૓ ‫ך‬ ॺ В த ٬ Ҕႝ တ ೿ ࢂբ ࣁ࠼ Њ ᆄǴԶServer߾ ࢂPOP3‫ޑ‬ແҹܺ ୍ ᆄǶᖐ ঁ ‫׎‬ ຝ ‫ٯޑ‬ η ǺServerࢂ೚ ӭ λ ߞጃ ‫ޑ‬໣ ӝ Ǵ൩ Ⴝ ‫ך‬ ॺ ‫܌‬ ۚ Ր ኴ ‫܊‬ ‫ߞޑ‬ጃ ่ ᄬ ǴԶ࠼ Њ ᆄ൩ ӳ К ࢂ΋ঁ Γ ৾ ๱ ᢄ ୒ ѐ ߞጃ ໒ ᙹ ‫ߞڗ‬Ǵ΋ኬ ‫ޑ‬ၰ ౛ [IV]Ƕ
  15. 15. 7 POP3‫ک‬΢ य़ ‫ޑ‬SMTP‫ڐ‬ ᝼ ΋ኬ Ǵ‫ځ‬ჴ ౜ Ψ ࢂ΋ঁ ࠼ Њ ᆄᆶܺ ୍ Ꮤ ‫ޑ‬ჹ၉ ၸ ำǴ྽‫ך‬ ॺ ᗺ ᔐ Αႝ η ແҹ೬ ᡏ ύ‫ޑ‬ௗ ԏ ࡪ ່ ࡕǴႝ η ແҹ೬ ᡏ २ Ӄ ཮ ٬ ҔDNS ‫ڐ‬ ᝼ ჹPOPܺ ୍ ᆄ຾ Չ ှ ‫݋‬ IPӦ ֟ Ǵ྽IPӦ ֟ ೏ ှ ‫݋‬ р ٰࡕǴແҹำ‫ׇ‬ ߡ໒ ‫ۈ‬ ٬ ҔTCP‫ڐ‬ ᝼ ೱ ௗ ແҹܺ ୍ ᆄ‫ޑ‬110ೱ ௗ ୵ ǴӢ ࣁPOPܺ ୍ ᆄࢂК ၨ Ԇ ‫ޑ‬Ǵ‫܌‬ а ӧ ೭ ঁ ၸ ำύ‫ך‬ ॺ ࣬ ჹा ฻ К ၨ ߏ ‫ޑ‬ਔ໔ Ƕ ྽ແҹำ‫ׇ‬ ԋ фӦ ೱ ΢ POPܺ ୍ ᆄࡕǴ२ Ӄ ཮ ٬ ҔUSER‫ڮ‬ з ஒߞጃ ‫ޑ‬஦ ဦ ໺ ๏ POPܺ ୍ ᆄǴฅ ࡕӆ ٬ ҔPASS‫ڮ‬ з ஒߞጃ ‫ޑ‬஦ ဦ ໺ ๏ ܺ ୍ ᆄǶ྽ֹ ԋ ೭ ᇡ ᛾ ၸ ำࡕǴແҹำ‫ׇ‬ ٬ ҔSTAT‫ڮ‬ з ፎ ‫؃‬ ܺ ୍ ᆄ߇ ӣ ߞጃ ‫ޑ‬಍ ी ၗ਑ ǴК ӵ ແҹ ᕴ ኧ ‫ک‬ແҹε λ ฻ Ǵฅ ࡕLIST‫ڮ‬ з ߡ཮ ӈ р ܺ ୍ ᆄ္ ແҹኧ ໆ Ƕௗ Πٰແҹำ‫ׇ‬ ൩ ཮ ٬ ҔRETR‫ڮ‬ з ௗ ԏ ແҹǴௗ ԏ ΋࠾ ߞࡕߡ٬ ҔDELE‫ڮ‬ з ஒແҹܺ ୍ ᆄύ‫ޑ‬ ແҹ೛࿼ࣁմ ନ‫ރ‬ ᄊ Ƕ྽٬ ҔQUIT‫ڮ‬ з ਔǴແҹܺ ୍ ᆄߡ཮ ஒ೛࿼ࣁմ ନ‫ރ‬ ᄊ ‫ޑ‬ແҹ๏ մ ନΑǶʳ ಃ Ѥ ക ʳ ೬ ᡏ ф ૈ ࢎ ᄬ 4 . 1 ሡ ‫؃‬ ϩ ‫݋‬ २ Ӄ ሡ ा ΋ঁ ё ϩ ٦ SMTP‫ک‬POP3‫ڐ‬ ‫ޑۓ‬Mail Serverٰ຾ Չ ႝ η ແҹ‫ޑ‬ԏ วǴ‫܌‬ а ҁ ஑ ᚒ Ь ा ࢂа Google‫ޑ‬Gmailߞጃ ྽Mail ServerǴӧෳ ၂ ߻ ໪ Ӄ ‫ډ‬ GAMIL໒ ௴ ϩ ٦ POP3‫ޑ‬фૈǶ Զᕉ ნ Б य़ ନΑCLIENTᆄҁ ‫ي‬ ा Ԗ Java‫ޑ‬ᕉ ნ Πᗋ ሡ ќ Ѧ Πၩ JavaMail v1.41 ǵ JAF(JavaBeans Activation Framework)v1.4.1 ǵ JMF(Java Media Framework)v2.2.1eǶ ‫ځ‬Ӽ း ‫؁‬ ᡯ ӵ Π: 1. ஒ JavaMail ǵ JAF ှ ᓸ ᕭ ϐ ࡕ ٠ ஒ mail.jar ǵ activation.jar ǵ customizer.jarǵjmf.jarǵmediaplayer.jarǵmultiplayer.jarǵፄ ᇙ ‫ډ‬ ȘC:ProgramFilesJavajdk1.6.0jrelibextș
  16. 16. 8 ຏǺȘC:Program FilesJavașࣁҁ ჴ ଺ ϐJavaӼ း ၡ ৩ Ǵ‫ހځ‬ҁ ࣁ1.6.0Ƕፎ ٩ ྣ Ծ ρ ‫ޑ‬ၡ ৩ ѐ բ অ ҅Ǵѝ ा ‫ܫ‬ ‫ډ‬ ྽ύ‫ޑ‬Șjrelibextș ջ ё Ƕ 2. ӧ ᕉ ნ ᡂ ኧ ‫ޑ‬ ‫س‬ ಍ ᡂ ኧ Ș Path ș ύ ቚ у а Π ၡ ৩ ȘC:ProgramFilesJavajdk1.6.0jrelibș კ 3 ೛ ‫ۓ‬ ᕉ ნ ᡂ ኧ ˆ ˁ ӧᕉ ნ ᡂ ኧ ‫سޑ‬ ಍ ᡂ ኧ ཥ ቚ ΋ঁ ‫س‬ ಍ ᡂ ኧ ࣁȘCLASSPATHș٠ ஒ mail.jarǵactivation.jarǵcustomizer.jarǵjmf.jarǵmediaplayer.jarǵ multiplayer.jarӄ ೽ ‫ޑ‬ᔞਢၡ ৩ у Ε ‫ډ‬ Ԝ ‫س‬ ಍ ᡂ ኧ ϐᡂ ኧ ॶ ྽ύǶ Ș ‫ٯ‬ ӵ Ǻ C:ProgramFilesJavajdk1.6.0jrelibextmail.jar; ș ʳ კ 4 ཥ ቚ CLASSPATH ‫س‬ ಍ ᡂ ኧ ᆶ ‫ځ‬ ᡂ ኧ ॶ
  17. 17. 9 4 . 2 ೛ ी ϩ ‫݋‬ Πკ ϩ ձ ࣁSMTP Client‫ک‬POP3 Client‫٬ޑ‬ Ҕϟ य़ ǴӃ Αှ ‫ٿ‬ ᅿ ‫س‬ ಍ ‫ޑ‬ำԄ ଛ ࿼Ǵ٠ Ъ ‫ע‬ ϟ य़ ᆶำԄ ଺ ่ ӝ Ǵԋ ࣁё а ӕ ਔԏ ஌ ႝ η ແҹ‫ޑ‬E-Mail ClientǶ ʳʳʳʳ კ 5 SMTP Client ϟय़ ʳʳʳʳ კ 6 POP3 Client ϟय़ ࣁΑ෧ Ͽ ྠ ᚇ ‫ޑ‬Mail Server೛‫٬کۓ‬ Ҕ‫ޣ‬ၗૻ ᒡ Ε Ǵ‫܌‬ а Ψ ໪ ஒ‫ٿ‬ ᅿ ‫س‬ ಍ ‫ޑ‬Clientᆄ೛‫଺ۓ‬ ่ ӝ Ǵٰග ϲ ٬ Ҕ‫ޣ‬ԏ วႝ η ແҹਔ‫ޑ‬ਏ ౗ Ƕʳʳʳʳ ʳʳʳʳ კ 7 SMTP Profile ʳʳʳʳ კ 8 POP3 Profile
  18. 18. 1 0 4 . 3 ෳ ၂ ी Ⴤ २ Ӄ ǴӃ ஒSMTP Client‫ک‬POP3 Client‫٬ޑ‬ Ҕϟ य़ ϷำԄ ᏾ ӝ Ǵ٠ Ъ ෳ ၂ ࢂ ց ё ҅த ӕ ਔԏ วႝ η ແҹᆶ‫ׯ‬ ๓ ୺ Չ ਔ‫฻ޑ‬ ࡑ ਔ໔ Ǵ٠ у Ε Ь ԑ इ ᒵ ǵແҹߕ у ᔞਢǵी ᆉ ᐒᆶՉ ٣ ᏿фૈෳ ၂ ำԄ ࣬ ৒ ࡕǴ୺ Չ ࢂց ҅த Ǵа Ϸ᏾ ᡏ ୺ Չ ೲ ࡋ ࢂց Ԗ ‫ڙ‬ ቹ ៜ Ƕ ಃ ϖ ക ʳ ೬ ᡏ ࢬ ำ კ 5 . 1 ࢬ ำ კ ʳ კ 9 ೬ ᡏ ࢬ ำ კ
  19. 19. 1 1 ٬ Ҕ‫ޣ‬ಃ΋ԛ ໒ ௴ ೬ ᡏ ਔǴሡ Ӄ ‫ډ‬ ೛‫ۓ‬(1)ѐ ᒡ Ε SMTPᆶPOP3‫ޑ‬HOST‫ک‬ POSTϷSSL‫ڐ‬ ‫ޑۓ‬஦ ဦ ஏ ዸ Ǵᒡ Ε ֹ ࡕᗺ ᒧ ᓯ Ӹ ǴΠ΋ԛ ໒ ௴ ਔǴ൩ ё ό Ѹ ӆ ख़ ፄ ᒡ Ε ΑǶ೛‫ֹۓ‬ ࡕǴё ᒧ ᏷ ी ᆉ ᐒ(2)ǵ࿤ԃ Չ ٣ ᏿(3)‫܈‬ ஌ ߞ(4)ᆶԏ ߞ(10)ф ૈǴ஌ ߞϟ य़ ё а ኗ ቪ ཥ ແҹ(5)٠ у Ε த ҔЬ ԑ (6)ᆶߕ у ᔞਢ(7)Ǵߞҹ໺ ଌ (8) ࡕǴஒԖ ஌ ҹග Ң (9)‫ޑ‬ຎ ื ‫ॣک‬ ኷ Ƕԏ ҹ೽ ҽ Ǵᒧ ᏷ ࡕё ҥ ջ ௗ ‫ڙ‬ ແҹ(11)Ǵແ ҹௗ ԏ ֹ ԋ ཮ Ԗ ԏ ҹග Ң (12)‫ޑ‬ຎ ื ᆶॣ ኷ Ǵ٠ Ъ Ԗ ࡪ ΢ ΋࠾ (13)ᆶΠ΋࠾ (14) ٰᘤ ំ ԏ ҹǶʳ 5 . 2 ࢬ ำ კ ᇥ ܴ 1. ೛‫ۓ‬ ೛‫٬ۓ‬ Ҕ‫ߞޣ‬ጃ SMTPϷPOP3ϐHost‫ک‬PortᆶSSL‫ڐ‬ ‫ޑۓ‬஦ ဦ ஏ ዸ Ƕ 2. ᙁܰ ी ᆉ ᐒ Б ߡ٬ Ҕ‫ޣ‬ी ᆉ ϐπ ‫ڀ‬ Ƕ 3. Չ ٣ ᏿ ё ᓯ Ӹ ٣ ҹǴВ ය ΋‫ډ‬ ཮ р ౜ ග ᒬ ຎ ื Ƕ 4. ஌ ߞ ᒧ ᏷ ஌ ߞϐфૈǶ 5. ኗ ቪ ཥ ແҹ ༤ Ε ԏ ҹΓ ǵЬ ԑ а Ϸߞҹϣ ৒ ฻ ឯՏ Ƕ 6. த ҔЬ ԑ ё Ⴃ Ӄ ᓯ Ӹ த Ҕ‫ޑ‬Ь ԑ Ǵ٠ ӧኗ ቪ ཥ ແҹਔᗺ ᒧ у Ε Ƕ 7. ߕ у ᔞਢ ё ӧႝ η ແҹύཥ ቚ ౽ ନߕ ҹǶ 8. ໺ ଌ ߞҹ ࡪ Πวଌ ແҹϐࡪ ່ Ƕ 9. ஌ ҹග Ң ໺ ଌ ແҹԋ фࡕǴ཮ р ౜ ග ᒬ ϐຎ ื ᆶග Ң ᖂ Ƕ 10. ԏ ߞ
  20. 20. 1 2 ᒧ ᏷ ԏ ߞϐфૈǶ 11. ௗ ԏ ແҹ ࡪ Πௗ ԏ ແҹϐࡪ ່ Ƕ 12. ԏ ҹග Ң ௗ ԏ ແҹԋ фࡕǴ཮ р ౜ ග ᒬ ϐຎ ื ᆶග Ң ᖂ Ƕ 13. ΢ ΋࠾ ᗺ ᒧ ࡕǴё ᘤ ំ ΢ ΋࠾ ແҹǶ 14. Π΋࠾ ᗺ ᒧ ࡕǴё ᘤ ំ Π΋࠾ ແҹǶ 5 . 3 ೛ ी ၸ ำ ᆶ ୢ ᚒ 1. ಃ΋‫ހ‬ კ 10 ಃ΋ ‫ހ‬ SMTP Client Ьϟय़
  21. 21. 1 3 კ 11 ಃ΋ ‫ހ‬ SMTP Client ϐ࣬ ᜢ ೛ ‫ۓ‬ კ 12 SMTP Client ໺ ᒡ ၸ ำ ϐ၁ ಒ ၗ ਑
  22. 22. 1 4 კ 13 ಃ΋ ‫ހ‬ POP3 Client Ьϟय़ კ 14 ಃ΋ ‫ހ‬ POP3 Client ϐ࣬ ᜢ ೛ ‫ۓ‬ ୢ ᚒ ᆶБ ‫ݤ‬ : SMTP ClientԖ ᡉ Ң р ς ໺ ଌ ૻ ৲ Ǵՠ ߞҹϝ ҂ ଌ р Ǵ໪ ӧՏ ֟ ೛ ‫ۓ‬ឯՏ у Ε Տ ֟ ߞጃ ‫ޑ‬SSL஦ ဦ ஏ ዸ Ǵω ૈ࿶ ၸ Mail Server஌ ଌ ແҹǶ POP Clientค ‫ݤ‬ ҅த ௗ ԏ Mail Serverᆄ‫ޑ‬ႝ η ແҹǴሡ ‫ډ‬ Gmail ‫ޑ‬ႝ η ߞጃ ໒ ௴ POP3‫ޑ‬фૈǶ
  23. 23. 1 5 ˅ ˁ ಃΒ ‫ހ‬ʳ კ 15 ಃΒ ‫ހ‬ Email Client ϐ࣬ ᜢ ೛ ‫ۓ‬ კ 16 ಃΒ ‫ހ‬ Email Client ϐЬा ϟय़ ୢ ᚒ ᆶБ ‫ݤ‬ : SMTP Client‫ک‬POP3 Clientς ё а ೿ ٬ Ҕԏ วߞфૈǴՠ ೿ ឦ ‫ܭ‬ ঁ ձ ຎ ื Ǵሡ ஒ‫ٿ‬ ঁ ຎ ื ଺ ᏾ ӝ Ǵᡣ ٬ Ҕ‫ޣ‬ග ϲ ਏ ౗ Ƕ ˆ ˁ ಃΟ‫ހ‬ʳ
  24. 24. 1 6 კ 17 ಃΟ ‫ހ‬ Email Client ϐЬा ϟय़ ʳ კ 18 ಃΟ ‫ހ‬ Email Client ϐԏ ҹ պ
  25. 25. 1 7 კ 19 ಃΟ ‫ހ‬ Email Client ϐ࣬ ᜢ ೛ ‫ۓ‬ ୢ ᚒ ᆶБ ‫ݤ‬ Ǻ ς ஒSMTP Client‫ک‬POP Client᏾ ӝ ӧӕ ΋ঁ ຎ ื ΢ Ǵ٠ Ъ ஒ೛‫ۓ‬ ‫ٿ‬ ঁ ‫ޑ‬Տ ֟ ೛‫ۓ‬ឯΨ ଺ ᏾ ӝ Ǵࠅ วғ ค ‫ݤ‬ ԏ ߞ஌ ߞค ‫ݤ‬ ӕ ਔ຾ Չ ‫ރޑ‬ ‫ݩ‬Ƕ ˇ ˁ ಃѤ ‫ހ‬ʳ კ 20 ಃѤ‫ހ‬ Email Client ϐ஌ ߞ պ
  26. 26. 1 8 კ 21 ಃѤ‫ހ‬ Email Client ϐ໺ ଌ ԋ ф ග Ң კ 22 ಃѤ‫ހ‬ Email Client ϐԏ ҹ պ კ 23 ಃѤ‫ހ‬ Email Client ϐԏ ҹ ֹ ԋ ග Ң ୢ ᚒ ᆶБ ‫ݤ‬ Ǻ অ ‫ׯ‬ ࡕSMTP Client‫ک‬POP Clientς ࿶ ё а ӕ ਔ຾ Չ ԏ ߞᆶ஌ ߞ ‫ޑ‬ᏹ բ Ƕՠ Б ߡ٬ Ҕ‫ޣ‬ග ϲ ᏹ բ ‫ߕޑ‬ у фૈϼ Ͽ Ƕ
  27. 27. 1 9 ˈ ˁ ಃϖ ‫ހ‬:ʳ კ 24 ಃϖ ‫ހ‬ Email Client ϐཥ ቚ ߕ у ᔞ ਢ ф ૈ კ 25 ಃϖ ‫ހ‬ Email Client ϐ໒ ௴ ߕ у ᔞ ਢ ຎ ื ୢ ᚒ ᆶБ ‫ݤ‬ Ǻ ς у Ε Α΢ Πߞҹᘤ ំ ࡪ ່ ǵߕ у ᔞਢǵத ҔЬ ԑ ǵी ᆉ ᐒǵ࿤ ԃ Չ ٣ ᏿фϷॣ ኷ ග Ң фૈǶ
  28. 28. 2 0 ˈ ˁ ˇ ख़ ा ำ Ԅ ዸ ʳ ˄ ˁ ஌ ߞϐำԄ ዸ ʳ import java.util.*; import java.awt.Component; import java.security.Security; import javax.mail.*; import javax.mail.internet.*; import javax.activation.*; import javax.swing.JOptionPane; class Send { protected static DataSource fds = null; protected static void sendmail() throws AddressException, MessagingException { ʳ Properties props = System.getProperties(); ProfileDialog pd = new ProfileDialog(); final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory"; final String username = pd.jTextFieldUser.getText(); final String password = pd.jPasswordField.getText(); final String smtphost = pd.jTextFieldSmtpHost.getText(); final String smtpport = pd.jTextFieldSmtpPort.getText(); final String recipient = EmailClient.jTextFieldReceiver.getText(); final String From = username + "@gmail.com"; final String sendMsg = EmailClient.jTextArea.getText(); //ϣ Ў ʳ ʳ //‫ڗ‬ளឦ ‫܄‬ ‫ނ‬ ҹ Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); //೛‫ۓ‬ӷ ϡ ጓ ዸ ࣁBIG5 props.setProperty("mail.mime.charset", "big5");
  29. 29. 2 1 props.setProperty("mail.smtp.host", smtphost); props.setProperty("mail.smtp.socketFactory.class", SSL_FACTORY); props.setProperty("mail.smtp.socketFactory.fallback", "false"); props.setProperty("mail.smtp.port", smtpport); props.setProperty("mail.smtp.socketFactory.port", smtpport); props.put("mail.smtp.auth", "true");ʳ ʳ try { //Session session = Session.getDefaultInstance(props, Session session = Session.getInstance(props, new Authenticator() {ʳ ʳ ʳ ʳ protected PasswordAuthentication getPasswordAuthentication(){ return new PasswordAuthentication(username, password); } });ʳ //ࡌ ҥ ཥ ‫ޑ‬ແҹ Message msg = new MimeMessage(session); //೛‫ۓ‬Form msg.setFrom(new InternetAddress(From)); msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipient, false)); msg.setSubject(EmailClient.jTextFieldSubject.getText()); msg.setSentDate(new Date()); //ࡌ ҥ ӭ ϣ ৒ Multpart ແҹ‫ނ‬ ҹ Multipart multipart = new MimeMultipart(); MimeBodyPart mbp = new MimeBodyPart();
  30. 30. 2 2 //ࡌ ҥ html਱ Ԅ ϣ ৒ mbp.setContent(sendMsg,"text/html;charset=big5"); //ஒϣ ৒ у Ε Multpartແҹ‫ނ‬ ҹ multipart.addBodyPart(mbp);೬ ᡏ ჴ ౜ //ߕ у ᔞਢ mbp = new MimeBodyPart(); if(fds!=null){ mbp.setDataHandler(new DataHandler(fds)); mbp.setFileName(MimeUtility.encodeText(fds.getName(), "Big5", "B")); //ஒߕ у ᔞਢϣ ৒ у Ε Multpart ແҹ‫ނ‬ ҹ multipart.addBodyPart(mbp); } msg.setContent(multipart);//ჹ Multpart ແҹ‫ނ‬ ҹ೛‫ૻۓ‬ ৲ Transport.send(msg); JOptionPane.showMessageDialog((Component) null, "ແҹ໺ ଌ ֹ ԋ Ǽ", "ૻ ৲ ", JOptionPane.WARNING_MESSAGE); EmailClient.jLabelStatus.setText("ແҹ໺ ଌ ֹ ԋ "); SoundEffects se = new SoundEffects(); se.SoundEffects(); Clear();//మ ନແҹϣ ৒ fds = null;//మ ନߕ у ᔞਢ } catch(Exception e) { JOptionPane.showMessageDialog((Component) null, "ແҹค ‫ݤ‬ ໺ ଌ Ǽ", "ૻ ৲ ",
  31. 31. 2 3 JptionPane.WARNING_MESSAGE); } } protected static void Clear() { EmailClient.jTextFieldReceiver.setText(""); EmailClient.jTextFieldSubject.setText(""); EmailClient.jTextArea.setText(""); } } 2. ԏ ߞϐำԄ ዸ import javax.mail.*; import javax.mail.internet.*; import javax.swing.JOptionPane; import java.io.*; import java.security.*; import java.awt.Component; import java.util.Properties; import java.text.SimpleDateFormat; public class Receive { private static String[] mFrom = new String[255]; private static String[] mDate = new String[255]; private static String[] mBody = new String[255]; private static String[] mSubject = new String[255]; private static int total; protected static Message[] messages; public static void ReceiveMail() throws Exception { ProfileDialog pd = new ProfileDialog();
  32. 32. 2 4 final String pophost = pd.jTextFieldPopHost.getText(); final String popport = pd.jTextFieldPopPort.getText(); final String username = pd.jTextFieldUser.getText(); final String password = pd.jPasswordField.getText(); Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory"; //೛‫ۓ‬ਔ໔ ਱ Ԅ SimpleDateFormat sd = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss"); // ‫ڗ‬ளឦ ‫܄‬ ‫ނ‬ ҹ Properties props = System.getProperties(); props.setProperty("mail.pop3.socketFactory.class", SSL_FACTORY); props.setProperty("mail.pop3.socketFactory.fallback", "false"); props.setProperty("mail.pop3.port", popport); props.setProperty("mail.pop3.socketFactory.port", popport); //ࡌ ҥ Session Session session = Session.getInstance(props, null); URLName urln = new URLName("pop3", pophost, 995, null, username, password); Store store = session.getStore(urln); Folder inbox = null; SoundEffects se = new SoundEffects(); try { store.connect();
  33. 33. 2 5 inbox = store.getFolder("INBOX"); inbox.open(Folder.READ_ONLY); FetchProfile profile = new FetchProfile(); profile.add(FetchProfile.Item.ENVELOPE); messages = inbox.getMessages(); inbox.fetch(messages, profile); EmailClient.jLabelMailTotal.setText("ແҹጃ ‫ޑ‬ແҹኧ Ǻ" + Receive.messages.length); for (int i = 0; i < messages.length; i++) { // ແҹวଌ ‫ޣ‬ String from = decodeText (messages[i].getFrom()[0].toString()); InternetAddress ia = new InternetAddress(from); mFrom[i] = ia.getPersonal() + '('+ ia.getAddress() + ')'; // ແҹ኱ ᚒ mSubject[i] = messages[i].getSubject(); // ແҹวଌ ਔ໔ mDate[i] = sd.format(messages[i].getSentDate()); //ແҹϣ ৒ if(messages[i].isMimeType("text/*")) { mBody[i] = messages[i].getContent().toString(); } else { String disposition; BodyPart part; Multipart mp = (Multipart)messages[i].getContent();
  34. 34. 2 6 int mpCount = mp.getCount(); for(int m = 0; m < mpCount; m++) { part = mp.getBodyPart(m); disposition = part.getDisposition(); if(disposition != null && disposition.equals (Part.ATTACHMENT)) { //saveAttach(part); } else { mBody[i] = part.getContent().toString(); } } } } if(messages.length == 0) { EmailClient.jLabelMailStatus.setText("Ҟ ߻ ແҹǺ" + (total) + " / " +messages.length); JOptionPane.showMessageDialog((Component) null, "ؒ Ԗ ཥ ແҹǼ", "ૻ ৲ ", JOptionPane.WARNING_MESSAGE); se.SoundEffects(); } else { EmailClient.jLabelMailStatus.setText("Ҟ ߻ ແҹǺ" + (total+1) + " / " + messages.length); EmailClient.jTextFieldReceiveSender.ʳsetText( mFrom[total]); EmailClient.jTextFieldReceiveSubject.setText( mSubject[total]); EmailClient.jTextFieldReceiveDate.setText(
  35. 35. 2 7 mDate[total]); EmailClient.jTextArea1.setText(mBody[total]); if(messages.length == 1||messages.length == 0) { EmailClient.jButtonArrowRight.setEnabled(false); } else { EmailClient.jButtonArrowRight.setEnabled(true); } JOptionPane.showMessageDialog((Component) null, "ແҹௗ ԏ ֹ ԋ Ǽ", "ૻ ৲ ", JOptionPane.WARNING_MESSAGE); EmailClient.jLabelStatus.setText("ແҹௗ ԏ ֹ ԋ "); se.SoundEffects(); } } finally { try { if(inbox!=null) inbox.close(false);ʳif(store!=null) store.close(); } catch (Exception e) { e.printStackTrace(); } } } protected static void mailNext() { try { if(total < messages.length-1) { total = total+1; EmailClient.jTextFieldReceiveSender.setText( mFrom[total]); EmailClient.jTextFieldReceiveSubject.setText( mSubject[total]); EmailClient.jTextFieldReceiveDate.setText(
  36. 36. 2 8 mDate[total]); EmailClient.jTextArea1.setText(mBody[total]); EmailClient.jLabelMailStatus.setText("Ҟ ߻ ແҹǺ" + (total+1) + " / " + messages.length); if(total == messages.length-1) {EmailClient. jButtonArrowRight.setEnabled(false); } if(total != 0) { EmailClient.jButtonArrowLeft. setEnabled(true); } } catch (Exception e) {} } protected static void mailPreview() { try { if(total != 0) { total = total-1; EmailClient.jTextFieldReceiveSender.setText( mFrom[total]); EmailClient.jTextFieldReceiveSubject.setText( mSubject[total]); EmailClient.jTextFieldReceiveDate.setText( mDate[total]); EmailClient.jTextArea1.setText(mBody[total]); EmailClient.jLabelMailStatus.setText("Ҟ ߻ ແҹǺ" + (total+1) + " / " + messages.length); } if(total == 0) { EmailClient.jButtonArrowLeft.ʳsetEnabled( false); } if(total != messages.length-1) { EmailClient.jButtonArrowRight.setEnabled(true); }
  37. 37. 2 9 } catch (Exception e) {} } protected static String decodeText(String text) throws UnsupportedEncodingException { if (text == null) return null; if (text.startsWith("=?GB") || text.startsWith("=?gb")) text = MimeUtility.decodeText(text); else text = new String(text.getBytes("ISO8859_1")); return text; } //base64ှ ዸ private static String base64Decoder(String s) throws Exception { sun.misc.BASE64Decoder decoder = new sun.misc.BASE64Decoder(); byte[] b=decoder.decodeBuffer(s); return(new String(b)); } private static void saveAttach(BodyPart part) throws Exception { String temp=part.getFileName();//ள‫ډ‬ ҂ ࿶ ೀ ౛ ‫ߕޑ‬ ҹӜ ӷ //ѐ ‫ډ‬ header‫ک‬footer String s = temp.substring(11,temp.indexOf("?=")-1); //Ў ҹӜ ΋૓ ೿ ࿶ ၸ Αbase64ጓ ዸ ,Πय़ ࢂှ ዸ String fileName = base64Decoder(s); System.out.println("Ԗ ߕ ҹ:"+fileName); InputStream in=part.getInputStream(); FileOutputStream writer=
  38. 38. 3 0 new FileOutputStream(new File(fileName)); byte[] content=new byte[255]; int read=0; while((read=in.read(content))!=-1) { writer.write(content); } writer.close(); in.close(); } }
  39. 39. 3 1 ಃ Ϥ ക ʳ ೬ ᡏ ჴ ౜ 6 . 1 Clientᆄ೛ ‫ۓ‬ ྽೬ ᡏ ಃ΋ԛ ௴ ୏ ਔǴሡ Ӄ ‫ډ‬ Ѱ ΢ ‫ف‬ ‫ޑ‬ᔞਢ->೛‫ۓ‬ ࡪ ΠǴϐࡕ཮ າ р ೛‫ۓ‬ SMTPᆶPOP3‫ޑ‬HostᆶPortа ϷUser Information‫ޑ‬ຎ ื Ǵҁ ԛ ჴ ౜ ࢂа Gmailࣁ Mail ServerǴ྽೛‫ֹۓ‬ ౥ ࡕǴё ᒧ ᏷ ᓯ Ӹ а ΢ ೛‫܈ۓ‬ ࢂ‫ܫ‬ కǴ߾ Ծ ୏ ᜢ ഈ ຎ ื Ƕ კ 26 ೛ ‫ۓ‬ ᒧ ໨
  40. 40. 3 2 ʳ კ 27 Client ᆄ ೛ ‫ۓ‬ ໨ Ҟ 6 . 2 ஌ ߞ ф ૈ ೬ ᡏ ΋໒ ‫ۈ‬ Ⴃ ೛ӧ஌ ߞጃ ‫ޑ‬ϟ य़ ΢ Ǵ஌ ߞ‫ޑޣ‬ឯՏ ΢ ཮ Ӣ Ⴃ ೛‫ޑ‬೛‫ۓ‬ԶԾ ୏ ‫ע‬ ஌ ߞ‫ߞޑޣ‬ጃ Տ ֟ ᡉ Ң ΢ ѐ Ǵௗ Πٰӧԏ ߞ‫ޑޣ‬ឯՏ ΢ Ѻ ΢ ႝ η ແҹ‫ޑ‬ԏ ҹ ‫ޣ‬Ǵа ϷЬ ԑ ᆶϣ ৒ Ǵ༤ ቪ ֹ ࡕǴࡪ ΠȨ໺ ଌ ແҹȩ‫܈‬ ‫ז‬ ௘ ȨAlt+SȩǴߡ཮ ஒ ແҹଌ р Ǵଌ р ࡕ཮ າ р ૻ ৲ ຎ ื ᆶග ᒬ ॣ ኷ Ǵග ᒬ ٬ Ҕ‫ޣ‬ແҹς ໺ ଌ ֹ ԋ Ǵϐ ࡕࡪ ΠȨዴ ‫ۓ‬ȩߡё ᝩ ុ ᏹ բ Ƕ კ 28 ኗ ቪ ߞ ҹ ϣ ৒
  41. 41. 3 3 ʳ კ 29 ແ ҹ ଌ р ග Ң (֖ ග ᒬ ॣ ኷ ) 6 . 3 ԏ ߞ ф ૈ Ӄ ஒຎ ื ࡪ ‫ډ‬ Ȩԏ ߞպ ȩ‫ޑ‬ϟ य़ Ǵ٠ ࡪ ΠȨᔠ ࢗ ཥ ߞȩ‫܈‬ ‫ז‬ ௘ ȨAlt+Rȩߡ ཮ ໒ ‫ۈ‬ ӛ ٬ Ҕ‫ޑޣ‬Mail Server‫׬‬ ‫ڗ‬ཥ ແҹǴ྽ແҹԏ ҹֹ ԋ ࡕǴ཮ р ౜ ૻ ৲ ຎ ื ᆶග ᒬ ॣ ኷ ֋ ‫ޕ‬ ٬ Ҕ‫ޣ‬ǴѰ Π‫ف‬ Ψ ཮ ᡉ Ң ແҹௗ ԏ ֹ ԋ ǴԶӧѓ ΢ ‫ف‬ ཮ р ౜ Ҟ ߻ ԏ ߞպ ‫܌‬ ԏ ‫ޑڗ‬ແҹኧ ໆ ᆶҞ ߻ ᘤ ំ ‫ߞޑ‬ҹࢂಃ൳ ࠾ Ǵ٠ Ъ Ԗ Ȩ΢ ΋࠾ ȩᆶȨΠ ΋࠾ ȩ‫ޑ‬ᘤ ំ ࡪ ່ Ƕ კ 30 ᔠ ࢗ ཥ ‫ޑ‬ ߞ ҹ
  42. 42. 3 4 ʳ კ 31 ແ ҹ ௗ ԏ ග Ң (֖ ග ᒬ ॣ ኷ ) ʳ კ 32 ແ ҹ ᘤ ំ 6 . 4 த Ҕ Ь ԑ ф ૈ ӧȨቪ ཥ ߞȩ‫ޑ‬ϟ य़ Πࡪ ΠȨத ҔЬ ԑ ȩǴ཮ р ౜ த ҔЬ ԑ ຎ ื ǴӅ Ԗ Ϥ ঁ ឯՏ Ǵё а ឯՏ ΢ Ѻ Πѳ த ਔҔ‫ޑ‬Ь ԑ Ǵ྽ࡪ ΠѰ Ћ ᜐ ‫ޑ‬Ȩɠ ȩ່ ਔǴѓ Ћ ᜐ
  43. 43. 3 5 ‫ޑ‬த ҔЬ ԑ ཮ Ծ ୏ ၢ ‫ډ‬ Ȩቪ ཥ ߞȩ‫ޑ‬Ь ԑ ឯՏ ΢ ǴԶࡪ ΠȨᓯ Ӹ ȩ཮ Ծ ୏ ᓯ Ӹ Ѻ ΢ ‫ޑ‬த ҔЬ ԑ Ǵ‫܈‬ ࡪ Ȩᜢ ഈ ȩٰ่ ‫״‬ ຎ ื Ƕ კ 33 த Ҕ Ьԑ ф ૈ ϐࡪ ່ ʳ კ 34 த Ҕ Ьԑ ᒧ ໨ Ϸ у Ε ࡪ ່
  44. 44. 3 6 6 . 5 ߕ у ᔞ ਢ ф ૈ ӧȨቪ ཥ ߞȩ‫ޑ‬ϟ य़ Πࡪ ΠȨߕ у ᔞਢȩǴ཮ р ౜ ᘤ ំ ႝ တ ฯ ᅷ ᔞਢ‫ޑ‬໒ ௴ ຎ ื Ǵᗺ ᒧ ा ໺ ଌ ๏ ԏ ҹ‫ޑޣ‬ᔞਢࡕǴࡪ ΠȨ໒ ௴ ȩǴஒр ౜ ᒧ ᏷ ග ᒬ Ԅ ຎ ื Ǵ ΢ य़ ཮ ᡉ Ң ᔞਢၡ ৩ ᆶӜ ᆀ Ǵᡣ ٬ Ҕ‫ޣ‬Β ԛ ዴ ᇡ Ǵࡪ ΠȨࢂ(Y)ȩࡕǴߕ у ‫ޑ‬ᔞ ਢၡ ৩ ᆶᔞਢӜ ᆀ ཮ ᡉ Ң р ӧϟ य़ ‫ޑ‬Ѱ Π‫ف‬ ǴԶ྽ࡪ ΠȨ౽ ନߕ ҹȩࡕǴচ ҁ ߕ у ‫ޑ‬ᔞਢǴஒ೏ ౽ ନǴԶࢂϟ य़ Ѱ Π‫ف‬ ཮ р ౜ Ȩς ౽ ନߕ у ᔞਢȩ‫ޑ‬Ў ӷ ග Ң Ƕ კ 35 ߕ у ᔞ ਢ ϐࡪ ່ ʳ კ 36 ߕ у ᔞ ਢ ϐᔞ ਢ ໒ ௴ ᒧ ໨
  45. 45. 3 7 ʳ კ 37 ᒧ ᏷ ዴ ‫ۓ‬ ϐᒧ ໨ ʳ კ 38 ߕ у ᔞ ਢ ϐ౽ ନ ࡪ ່ ʳ კ 39 ߕ у ᔞ ਢ ϐ౽ ନ ග Ң
  46. 46. 3 8 6 . 6 ᙁ ܰ ी ᆉ ᐒ ф ૈ ໒ ௴ ೬ ᡏ ࡕǴӧϟ य़ ΢ Б ᒧ ᏷ π ‫ڀ‬ ->ी ᆉ ᐒ ࡪ ΠǴ཮ р ౜ ΋ঁ ᙁܰ ी ᆉ ᐒǴБ ߡ٬ Ҕ‫ޣ‬຾ Չ ᙁܰ ၮ ᆉ Ƕ ʳ კ 40 ᙁ ܰ ी ᆉ ᐒ ϐф ૈ ϟय़ 6 . 7 Չ ٣ ᏿ ф ૈ ໒ ௴ ೬ ᡏ ࡕǴӧϟ य़ ΢ Б ᒧ ᏷ π ‫ڀ‬ ->Չ ٣ ᏿ ࡪ ΠǴ཮ р ౜ ΋ঁ ࿤ԃ Չ ٣ ᏿Ǵᗺ ᒧ Ѱ ᜐ В ය ࡕǴё а ӧѓ ᜐ ឯՏ ቪ ΢ ૶ ٣ Ǵࡪ ΠȨᓯ Ӹ ȩࡕǴᗺ ᒧ В ය ཮ ‫ׯ‬ ᡂ ԋ ᙔ Յ ӷ ኬ Ǵӆ ᗺ ᒧ ΋ԛ Ǵѓ ᜐ ឯՏ ཮ Ծ ୏ ᡉ Ң р Ǵ٣ ߻ ‫܌‬ ૶ ᒵ ٣ ໨ Ǵ‫܈‬ ࢂ ҔѰ Π‫ޑ‬В ය ᒡ Ε ࡕǴᗺ ᒧ Ȩࢗ ၌ ȩǴΨ ཮ р ౜ इ ᒵ ٣ ໨ ǶԶࡪ Ȩమ ନȩᒧ ໨ Ǵ ߾ ཮ ஒइ ᒵ ٣ ໨ మ ନǶ ʳ კ 41 Չ ٣ ᏿ ϐф ૈ ϟय़
  47. 47. 3 9 ಃ Ύ ക ʳ ่ ፕ ѱ य़ ᅌ ᅌ р ౜ ೚ ӭ ၟ E-mail‫࣬ޑ‬ ᜢ ೬ ᡏ Ǵᡣ ٬ Ҕ‫ޣ‬ё а ᇸ ܰ ‫ޑ‬ԏ วE-mailǴ ՠ Ҟ ߻ ϝ Ԗ ೚ ӭ ٬ Ҕ‫ޣ‬ᗋ ࢂӧᆛ । ΢ ຾ Չ E-mail‫ޑ‬ԏ วǴԶ‫ך‬ ॺ ൩ ࢂа ೭ ኬ ‫ޑ‬р วᗺ ೛ी Ƕ Զ೭ ঺ E-mail Clientࢂа JavaMailࣁࢎ ᄬ ‫܌‬ ኗ ቪ ǴЬ ा ᏾ ӝ ΑSMTP Client ᆶPOP3 Client‫ޑ‬фૈǴ‫ׯ‬ ᡂ ε ৎ ӧᆛ । ԏ วE-mail‫ޑ‬ಞ ᄍ Ǵѝ ा ᙁൂ ‫ޑ‬൳ ঁ ೛ ‫ۓ‬Ǵό ໪ ໒ ଆ ᆛ । ൩ ё а ᇸ ܰ ‫ޑ‬ӧ೬ ᡏ ΢ ԏ วE-mailǶ ٠ Ъ у Ε ΑБ ߡ٬ Ҕ‫ޣ‬ӧԏ วE-mailਔǴ‫܌‬ ሡ Ҕ‫ډ‬ ‫ޑ‬΋٤ фૈ‫ک‬λ ග Ң Ǵٰ ග ϲ ٬ Ҕ‫ޣ‬ԏ วE-mail‫ޑ‬ਏ ౗ ‫ߡک‬ճ ‫܄‬ Ƕ ჹ‫ܭ‬ ҁ ஑ ᚒ ‫ޑ‬҂ ٰ৖ ఈ Ǵё у Ε ё Ⴃ Ӄ ೛‫ۓ‬஌ ߞਔ໔ ‫ޑ‬фૈǴё ᡣ ‫س‬ ಍ ж ඹ ٬ Ҕ‫ޣ‬ӧख़ ा ࿯ В ό ᒱ ၸ วଌ E-mailǴа Ϸԏ ߞфૈᆶՉ ٣ ᏿଺ ่ ӝ Ǵᒧ ᏷ Չ ٣ ᏿В ය ߡஒ྽В ԏ ҹֹ ᏾ ௨ ‫ׇ‬ ǴБ ߡ٬ Ҕ‫ޣ‬ᘤ ំ Ϸ‫פ‬ ൨ ແҹǶ ୖ Ե Ў ᝘ [I]YOYO,Yahoo!‫ڻ‬ ነ ೽ ပ ਱ - Java‫ޑ‬ϟ ಏ http://tw.myblog.yahoo.com/jw!8bajdGGBAwN9fRfAC2Y8hg--/article?mid=6 &prev=7&next=5 [II]Є གྷ ‫ޜ‬ ໔ ၗૻ Ҭ ࢬ ύЈ - JavaMail APIಒ ࿯ ၁ ಒ ှ ‫݋‬ ε ӄ http://tw-box.com/bbs/simple/index.php?t202721.html [III]wayne,ҔJavaMailቪ ᙁܰ ႝ η ແҹวଌ ‫س‬ ಍ ,(2001-09-04). [IV] littlechenchen‫ޑ‬஑ ឯ - ແҹܺ ୍ SMTP/IMAP‫ڐ‬ ᝼ ϟ ಏ http://blog.csdn.net/littlechenchen/archive/2009/03/13/3987748.aspx

×