»¶Ó­¹âÁÙ£¡ ¾«Æ·Ô­´´±ÏÒµÉè¼Æ¡¢ÂÛÎÄ --´´Òâ±ÏÒµÉè¼ÆÂÛÎÄÍø£¡

 
  ÈÈËÑ´Ê£º¹ºÎïϵͳ Ñ§Éú ÈËÊ ÏúÊÛ ÏúÊÛ¹ÜÀí É̳Ǡ¶©Æ±

µ±Ç°Î»Ö㺼ÆËã»ú±ÏÒµÉè¼Æ > JAVA > ÓʼþȺ·¢ÏµÍ³µÄÉè¼ÆÓëʵÏÖJAVA1005(±ÏÒµÉè¼Æ+ÂÛÎÄ) 
 
 
ÓʼþȺ·¢ÏµÍ³µÄÉè¼ÆÓëʵÏÖJAVA1005(±ÏÒµÉè¼Æ+ÂÛÎÄ)
 
  ×÷Õߣº admin   ÈÕÆÚ£º2016-11-21 22:21:36   ¼Û¸ñ£º150Ôª   ÈËÆø£º1563 ´Î
 
ÒÔÏÂÊÇ´ó¸Ù½éÉÜ£¬ÈçÐèÒªÍêÕûÉè¼Æ×ÊÁÏÇ빺Âò
Ìáʾ£º±¾×ÊÁÏÒÑÉóºË¹ý£¬ÄÚÈÝÑϸñ±£ÃÜ£¬¸ñʽ±ê×¼£¬ÖÊÁ¿±£Ö¤¡£


¿Í·þ1£ºQQ:1363407015  ±ÏÒµÉè¼Æ×Éѯ  
΢ÐÅ¿Í·þ£º
   
 
      
1.ÎÞÐè×¢²á¾Í¿ÉÒÔ¹ºÂò£¬¹ºÂòÇëÊÂÏÈ×Éѯ¿Í·þÈËÔ±¡£
2.±¾Õ¾ÌṩËùÓбÏÒµÉè¼Æ¶¼°üÊÛºó¡¢°üÔËÐС¢°ü½²½â¡¢°üµ÷ÊÔ¡£¡£
 
Ïêϸ½éÉÜ ×¨Òµ¶¨ÖƸ÷Àà´óѧÉú±ÏÒµÉè¼Æ£¬°üÊÛºó¡¢°üÔËÐС¢°üµ÷ÊÔ£¡»¶Ó­×Éѯ...

Õª    Òª
×÷ΪһÖÖͨ¹ýÍøÂçʵÏÖÏ໥´«ËͺͽÓÊÕÐÅÏ¢µÄÏÖ´ú»¯Í¨ÐÅ·½Ê½£¬µç×ÓÓʼþÒѳÉΪÈËÃÇÈÕ³£Éú»î¼°¹¤×÷½øÐÐÐÅÏ¢½»»»µÄÖØÒªÔØÌ壬ÊÇÄ¿Ç°InternetÉÏ×î³£ÓõŦÄÜÖ®Ò»¡£
±¾ÂÛÎÄÊÇ»ùÓÚJavaMailµÄ¼òÒ×µç×ÓÓʼþϵͳµÄʵÏÖ£»ÏµÍ³·ÖÎöÖиø³öÁ˵ç×ÓÓʼþ·þÎñÆ÷ºÍµç×ÓÓʼþ¿Í»§¶ËµÄ¼ò½é£¬Í¬Ê±¸ø³öÁ˱¾´ÎÊÔÑéÖпͻ§¶ËµÄÖ÷Òª¹¦ÄܺÍ×ÜÌå¿òͼ¡£
±¾ÏµÍ³ÒÔJavaÓïÑÔ×÷Ϊϵͳ¿ª·¢µÄ»ù´¡ÓïÑÔ£¬ÒÔSUN¹«Ë¾ÌṩµÄJavaMail API±ê×¼¿ª·¢°üÖеĽӿڣ¬×÷ΪjavaÓ¦ÓóÌÐò½øÐÐÊÕ·¢µç×ÓÓʼþµÄ¹«¹²½Ó¿Ú£¬Ê¹Óó£ÓõÄSMTP¼òµ¥Óʼþ´«ÊäЭÒéºÍPOP3ÓʾÖЭÒ飬ʵÏÖÁË°üÀ¨Óû§µÇ¼¡¢Óʼþ·¢ËÍ¡¢Óʼþ½ÓÊÕ¡¢Óʼþ´¦ÀíÒÔ¼°ÁªÏµÈ˹ÜÀíÔÚÄÚµÄÓʼþϵͳµÄ»ù±¾¹¦ÄÜ¡£²¢Í¨¹ýÖð²½²âÊÔ£¬Âú×ãÁËÆÕͨÓû§¶Ôµç×ÓÓʼþϵͳµÄ¼òµ¥ÐèÇó¡£

¹Ø¼ü´Ê£ºJavaMail£»ÓʼþÊÕ·¢Ð­Ò飻Óʼþ·þÎñÆ÷£»µç×ÓÓʼþϵͳ
 
Abstract
As a modern means of communication with each other to send and receive information through the network and people's daily life and work, e-mail has become an important carrier of information exchange as one of the most commonly used functions on the Internet.
This paper is based on the realization of the the JavaMail simple e-mail system; system analysis given in the Introduction of the e-mail server and e-mail client, and gives the main features and the overall block diagram of the test client.
This system use the Java language as the language of the system developed ,using the interface provided by the SUN JavaMail API standard development package ,as a java application to send and receive e-mails public interface , and using the common SMTP Simple Mail Transfer Protocol and POP3 Post Office Protocol , to realize including user login, mail, mail receiving, mail handling and contact management ,as the basic functions of the mail system. By gradually testing to meet the simple needs of ordinary users of the e-mail system. 
Keywords: the JavaMail; mail sending and receiving protocol; mail server ; e-mail system
 

 
µÚ1Õ Ð÷ ÂÛ
1.1¸ÅÊö
 µç×ÓÓʼþ£¨¼ò³ÆE-mail£©ÓֳƵç×ÓÐÅÏä¡¢µç×ÓÓÊÕþ£¬ËüÊÇÒ»ÖÖÓõç×ÓÊÖ¶ÎÌṩÐÅÏ¢½»»»µÄͨÐÅ·½Ê½¡£ÕýÊÇÓÉÓÚµç×ÓÓʼþ¾ßÓÐÊշѵÍÁ®¡¢Ê¹ÓüòÒס¢Í¶µÝѸËÙ¡¢Ò×ÓÚ±£´æ¡¢È«Çò³©Í¨ÎÞ×èµÈÓÅÓÚ´«Í³ÓʼþµÄÌØÐÔ£¬Ê¹µÃËü³ÉΪInternetÉÏ×î¹ã·ºµÄÓ¦ÓÃÖ®Ò»£¬ËüʹÈËÃǵĽ»Á÷·½Ê½µÃµ½Á˼«´óµÄ¸Ä±ä¡£ÁíÍ⣬µç×ÓÓʼþ»¹¿ÉÒÔ½øÐÐÒ»¶Ô¶àµÄÓʼþ´«µÝ£¬Í¬Ò»Óʼþ¿ÉÒÔÒ»´Î·¢Ë͸øÐí¶àÈË¡£¼«´óµØÂú×ãÁË´óÁ¿´æÔÚµÄÈËÓëÈËÖ®¼äͨÐŵÄÐèÇó¡£
µç×ÓÓʼþͨÐÅÊôÒ첽ͨÐÅ£¬ËùνÒ첽ͨÐÅÊÇÖ¸£ºÊÕ·¢Ë«·½²»±ØͬʱÔÚ³¡£¬·¢ËͺͽÓÊÕµÄÓʼþÔÝʱ´æÖüÔÚµç×ÓÓÊÏäÖУ¬Óû§¿ÉÒÔ¸ù¾ÝÐèÒª£¬ÊÊʱµØ½øÐÐÓʼþµÄ·¢ËͺͲéÊÕ£¬ÕâÖÖ·ÇʵʱµÄͨÐÅ·½Ê½£¬Ò²ÕýÊǵç×ÓÓʼþϵͳµÄºËÐÄ¡£
1.2¿ª·¢ÒâÒå¼°¹úÄÚÏÖ×´
µç×ÓÓʼþE-mailÊÇInternet×î»ù±¾µÄºÍ×îÖØÒªµÄ·þÎñÖ®Ò»¡£¾Ýͳ¼Æ£¬InternetÉÏ°Ù·ÖÖ®ÈýÊ®ÒÔÉϵÄÒµÎñÁ¿Êǵç×ÓÓʼþ¡£ÓÉÓÚÎÒ¹úµÄͨÐÅ»ù´¡ÉèÊ©½Ï²î£¬ÍøÂçËٶȽÏÂý£¬Òò¶ø£¬ÓëInternetÆäËü¹¦ÄÜÈçWWW¡¢FTP¡¢NEWSµÈÏà±È£¬µç×ÓÓʼþ·þÎñ¾ßÓиü´óµÄʵÓÃÐÔ¡£¡¶CINNICÖйú»¥ÁªÍøÍøÂç·¢Õ¹×´¿öͳ¼Æ±¨¸æ¡·ÖÐÖ¸³ö¡£71.65%µÄÖйúÓû§×î³£ÓõÄÍøÂç·þÎñ¾ÍÊǵç×ÓÓʼþ£¬Õâ¸ö±ÈÀýÔ¶Ô¶¸ßÓÚËÑË÷ÒýÇ棨50.40%£©ºÍÈí¼þÉÏ´«»òÏÂÔØ·þÎñ£¨44.16%£©µÈÆäËû·þÎñ¡£
1.3ϵͳÌصã
±¾ÏµÍ³·ÖÎöÖиø³öÁ˵ç×ÓÓʼþ·þÎñÆ÷ºÍµç×ÓÓʼþ¿Í»§¶ËµÄ¼ò½é£¬Í¬Ê±¸ø³öÁ˱¾´ÎÊÔÑéÖпͻ§¶ËµÄÖ÷Òª¹¦ÄܺÍ×ÜÌå¿òͼ¡£Óʼþ·þÎñÆ÷°´ÕÕÌṩµÄ·þÎñÀàÐÍ£¬¿ÉÒÔ·ÖΪ·¢ËÍÓʼþ·þÎñÆ÷£¨¼ò³Æ·¢ËÍ·þÎñÆ÷£©ºÍ½ÓÊÕÓʼþ·þÎñÆ÷£¨¼ò³Æ½ÓÊÕ·þÎñÆ÷£©¡£·¢ËÍÓʼþ·þÎñÆ÷ʹÓÃÓʼþ·¢ËÍЭÒ飬ÏÖÔÚ³£ÓõÄÊÇSMTP£¬ËùÒÔͨ³£·¢ËÍÓʼþ·þÎñÆ÷Ò²³ÆΪSMTP·þÎñÆ÷£»½ÓÊÕÓʼþ·þÎñÆ÷ʹÓÃÓʼþ½ÓÊÕЭÒ飬³£ÓõÄÓÐPOP3ºÍIMAPЭÒ飬ËùÒÔͨ³£½ÓÊÕÓʼþ·þÎñÆ÷Ò²³ÆΪPOP3·þÎñÆ÷»òIMAP·þÎñÆ÷¡£
SMTP £¨ Simple Mail Transfer Protocol £©£¬¼´¼òµ¥Óʼþ´«ÊäЭÒ飬ÊÇInternet´«ËÍE-mailµÄ»ù±¾Ð­Ò飬ҲÊÇTCP/IPЭÒé×éµÄ³ÉÔ±¡£SMTPЭÒé½â¾öÓʼþϵͳÈçºÎͨ¹ýÒ»ÌõÁ´Â·£¬°ÑÓʼþ´Óһ̨»úÆ÷´«Ë͵½Áíһ̨»úÆ÷ÉϵÄÎÊÌâ¡£SMTPЭÒéµÄÌصãÊǾßÓÐÁ¼ºÃµÄ¿ÉÉìËõÐÔ£¬ÕâÒ²ÊÇËü³É¹¦µÄ¹Ø¼ü¡£SMTPЭÒéÓÉÓڷdz£¼òµ¥£¬ÓÖͬʱÊÊÓÃÓÚ¹ãÓòÍøºÍ¾ÖÓòÍø£¬Ê¹ËüµÃµ½Á˹㷺µÄÔËÓã¬InternetÉÏÄܹ»·¢ËÍÓʼþµÄ·þÎñÆ÷¼¸ºõ¶¼Ö§³ÖSMTPЭÒé¡£
POP3 £¨Post Office Protocol 3£©£¬¼´ÓʾÖЭÒéµÚÈý°æ£¬ÊÇInternet½ÓÊÕÓʼþµÄ»ù±¾Ð­Ò飬ҲÊÇTCP/IPЭÒé×éµÄ³ÉÔ±¡£RFC1939ÃèÊöÁËPOP3ЭÒ飬ÍøַΪ¡°http://www.ietf.org/rfc/rfc1939.txt¡±¡£
POP3¼ÈÔÊÐí½ÓÊÕÓʼþ·þÎñÆ÷ÏòÓʼþÓû§·¢ËÍÓʼþ£¬Ò²¿ÉÒÔ½ÓÊÕÀ´×ÔSMTP·þÎñÆ÷µÄÓʼþ¡£Óʼþ¿Í»§¶ËÈí¼þ»áÓëPOP3·þÎñÆ÷½»»¥£¬ÏÂÔØÓÉPOP3·þÎñÆ÷½ÓÊÕµ½µÄÓʼþ¡£»ùÓÚPOP3ЭÒéµÄÓʼþϵͳÄÜÌṩ¿ìËÙ¡¢¾­¼ÃºÍ·½±ãµÄÓʼþ½ÓÊÕ·þÎñ£¬ÉîÊÜÓû§µÄÇàíù¡£


 
 

˵Ã÷£º±¾Õ¾ËùÓгÌÐò¶¼±£Ö¤ÔËÐУ¬Ã¿¸öÌâÄ¿¶¼ÓжÔÓ¦µÄÊÓƵÑÝʾ¼Ïñ£¬½ØͼÎĵµµÈÄÚÈÝ¡£

ÈçÐèÒª¸ü¶à×ÊÁÏÇëÁªÏµ¿Í·þÈËQQ£º:1363407015

 
 
 

 
»ùÓÚSSM¿ò¼Ü¶©Æ±ÏµÍ³µÄÉè¼ÆÓëʵÏÖ
»ùÓÚSSMµÄ±¾±¾ÍøÉÏÖ÷ÌâÉ̵êϵͳÉè¼ÆÓ뿪·¢
»ùÓÚSSMµÄÒ©Æ·¹ÜÀíϵͳÉè¼ÆÓëʵÏÖ
»ùÓÚssmµÄÂÃÓÎÍøվϵͳµÄÉè¼ÆÓëʵÏÖ
»ùÓÚSSMÕûºÏµÄ½ÌÎñ¹ÜÀíϵͳ
»ùÓÚSSMѧÉúÑ¡¿ÎϵͳÉè¼ÆÓëʵÏÖ
»ùÓÚpythonÔÚÏß¹ºÎïƽ̨ÉÌÆ·ÐÅϢץȡϵͳµÄÉ
»ùÓÚpythonÍøÂçÅÀ³æ¼¼ÊõµÄÐÂÎÅÊý¾Ý·ÖÎöÉè¼ÆÓ
»ùÓÚSSMµÄ¹«Òæ¾èÔù¹ÜÀíϵͳ(³ÌÐò+ÂÛÎÄ)
»ùÓÚssmÉè¼ÆӭйÜÀíϵͳµÄͳ¼Æ¿ª·¢(³ÌÐò+ÂÛ

 

 
B2Cµç×ÓÉÌÎñÖ§¸¶ÎÊÌâÏÖ×´¼°½â¾ö·½°¸Ñо¿1008
B2Bµç×ÓÉÌÎñÆóÒµ¼äµÄÐÅÏ¢»ñÈ¡Óë½»Á÷Ñо¿1001
µç×ÓÉÌÎñÖгÏÐű£ÕÏÊÇÓ°Ï칺Îï¾ö²ßµÄ¹Ø¼üÒòË
ÎÒ¹úµÚÈý·½ÎïÁ÷µÄ·¢Õ¹²ßÂÔÑо¿1014(±ÏÒµÂÛÎÄ
ÊÔÂÛµç×ÓÉÌÎñ¶ÔÎïÁ÷µÄÓ°Ïì1013(±ÏÒµÂÛÎÄ)
µç×ÓÉÌÎñ´æÔڵݲȫ·çÏÕÎÊÌâÑо¿Óë·À·¶1010(
B2Bµç×ÓÉÌÎñÖÐÐÅÓÃÌåϵµÄ¹¹½¨»úÖÆÑо¿1006(±
µç×ÓÉÌÎñµÄÐÅÈÎÎÊÌâ¼°½â¾ö·½°¸1009(±ÏÒµÂÛÎÄ
ÍøÉÏÖ§¸¶ÏÖ×´·ÖÎö¼°½â¾ö·½°¸Ñо¿1007(±ÏÒµÂÛ
ÊÔÂÛµç×ÓÉÌÎñ¶ÔÎïÁ÷µÄÓ°Ïì1011(±ÏÒµÂÛÎÄ)

 

 
Âò±ÏÒµÉè¼Æ³ÉÆ·µÄͬѧעÒâ±ãÒËûºÃ»õ£¡
±ÏÒµÉè¼Æ¶¨¼ÛÖ÷Òª¿´ÒÔϼ¸µã
³£¼ûÎÊÌâÖ¸Òý
ͬѧ¹ºÂò°ïÖúÖÐÐÄ
¶¨×ö±ÏÒµÉè¼ÆΪʲô±ØÐëÌáÇ°½»Äɶ¨½ð£¿
ÊÛºó·þÎñ½éÉÜ
±ÏÒµÉè¼ÆµÄ¹ºÂòÁ÷³Ì
¼ÆËã»ú±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©¿ªÌⱨ¸æÊéд×÷·½·¨
¹ºÂòÏֳɵÄ×÷Æ·ºÍ¶¨×öµÄ×÷Æ·ÓÐʲôÇø±ð£¿
ΪʲôÓеÄÍøÕ¾±¨¼Û±ãÒË£¬¶øÓеÄÔòÓÐЩ¹óÄØ£

 

 
³£¼ûÎÊÌâÖ¸Òý
¹ºÂò±ÏÒµÉè¼ÆÏÖ³É×÷Æ·ÄãÃÇÌṩÐÞ¸ÄÂð£¿
¹ºÂòÏֳɵÄ×÷Æ·ºÍ¶¨×öµÄ×÷Æ·ÓÐʲôÇø±ð£¿
ΪʲôÓеÄÍøÕ¾±¨¼Û±ãÒË£¬¶øÓеÄÔòÓÐЩ¹óÄØ
ÄúÃǹ«Ë¾ÐÅÓþÈçºÎ£¿
¶¨×öÉè¼ÆÐèÒª¶à¾Ãʱ¼ä£¿
¶¨×ö±ÏÒµÉè¼ÆΪʲô±ØÐëÌáÇ°½»Äɶ¨½ð£¿
¹ºÂòÏÖ³É×÷Æ·µÄ½»»õ·½Ê½£¿
Âò±ÏÒµÉè¼Æ³ÉÆ·µÄͬѧעÒâ±ãÒËûºÃ»õ£¡
±ÏÒµÉè¼Æ¶¨¼ÛÖ÷Òª¿´ÒÔϼ¸µã
ÔÚÏß¿Í·þ
ÈÈÏߵ绰

Ìí¼Ó΢ÐÅÕ˺źÃÓÑ
 

³ÏÑû¼¼Êõ¼ÓÃ˺Ï×÷£¬IOS¼¼Êõ¡¢Android¡¢Delphi¡¢Î¢ÐÅС³ÌÐò¡¢C++µÈ¼¼ÊõºÏ×÷ £¡³ÏÑû¸÷´óѧУͬѧ¼ÓÃË´úÀíºÏ×÷£¬ÕÐƸѧУ´úÀí£¬Íò·Ý¼ÆËã»ú³ÉÆ·×÷Æ·´úÀíȨ£¡

³ÏÕÐÍøÂç´úÀí,ѧÉú´úÀí¡£ Ãâ´úÀí·Ñ£¡ÔÂÈë¹ýÍò²»ÊÇÃΣ¡£¡

°æȨËùÓУºCopyright 2009-2020 ¼ÆËã»ú±ÏÒµÉè¼ÆÍø¿Í·þ·þÎñ£¡£¡ÍøÕ¾·þÎñQQ£º1363407015 ÍøÕ¾·þÎñQQ2£º405425197   ÊñICP±¸ 09030952 ºÅ