??????????????
???????????? ???????[ 2010/9/29 18:07:36 ] ????????
??????????飬??????????????д???????з????????????????????????????????????????ó????????????????Ч???????д?????Java Mail?????????顣????о?д?????е???????????????????ú??????????飬???????
???????????Щ?????У?????????????
??????1???????????????????????????????塣
???????dao???????????arrayList??int????Щ????????????????????а????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Bug????????????????Щtitle??id????????????????????????????????????Bug???????
??????2???????е?Dao???????????????????????????????????????
????????????Dao???????????????????????????????????????????????????????????????????????????????????????????????????????????ε??????????Щ??????????????????????ο??????Utility??DBManager??Щ??????????????????????????????????????????????????????á?
??????3????п????mail???????????????????
???????????????????ú????action id?????lastMailAction????????action??id????lastMailAction?????????δ????????????????bug??????????????????lastMailAction???????ЩBug?е?????
??????????????????????????????????????????????Bug?????????????????????lastMailAction?????????????ЩBug??????????Щ?????????????????????????????Bug??????????λ?????????????????????????????????????????????????????????????
??????4????????仯?????????????????????
????????????????????????????????mail??host??userName??password??lastMailAction?????????????θ???lastMailAction????????д?????????????host??userName??password??Щ????????????????lastMailAction?仯????????????????дlastMailAction????????host??Щ??????????????e??????????????????????????÷?????????д???????????????
??????5????????Щ????д?????????
????????host??userName??password??Щ???????д???????????????????б仯??????????????????鷳???????п??????????e???Щ????д?????????и?Properties?????????????????á?
????????????б仯????????????ò?????????????????????????
??????6?????Щ?й??????????????????????????????
???????????????????????????????????sendMail??sendMailReguraly?????????????????????????????????bug id??????????????bug ??????????????????????????????????e??????????????????????λ???????????????????????????????Щ??????Σ?????????赽????????????????????????????????????????????????????????????????Copy??????????????????????????????
??????7??????С??????????
??????????arrayList??????????while(!..isEmpty()){??.remove(0)};?????????????????remove????????????????????????i??????????????????????????????????????
????????????????String????????á?+??+??+????????????????String???????????ü?????????String?????????????String???洢?????????????????????String?????????String?????????????????μ?String?????????????????StringBuffer??String..???????????????????????????????
?????????????????????????????????Щ???С??С???????????漰???????????????????????????????Щ????????????????
??????8???????????
???????????????error Exception????????e.print..??????????á??????????????????????????????????????????????????????????С????????log4j????????????java?????
??????9????exception???finally?????
?????????Щ?????????????exception???????finally????close?????ЩС????棬????????????????????exception??????????.
????????????ɡ?????????Щ???????????顣????????У????д????...
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11