python·¢ËÍÓʼþ»áµÄ½øÀ´°ï°ïæ
´úÂëÔÚÕâ¸öÁ¬½Ó http://blog.donews.com/maverick/archive/2007/04/22/1159142.aspx ·½·¨def sendEmail(authInfo, fromAdd, toAdd, subject, plainText, htmlText): Õâ¸ö·½·¨ÊDz»Êǵ¥¶À¾Í¿ÉÒÔÄóöÀ´Óà Èç¹û¿ÉÒÔÆäÖеIJÎÊýËÄܸø˵һÏ ¸øÌî¸öÀý×Ó ²»Ê¤¸Ð¼¤
authInfo['server'] = 'smtp.163.com'·þÎñ authInfo['user'] = 'xxxxx@163.com'·¢Ë͵ÄÓÊÏ䣿 authInfo['password'] = 'ÃÜÂë'ÓÊÏäµÄÃÜÂë fromAdd = 'xxxxxxx@163.com'Õâ¸öÒ²Ìî·¢ËÍÓÊÏ䣿 toAdd = ['someone@somehost.com', 'other@somehost.com']ÕâÀïÃæÁ½¸ö²ÎÊýʲôÒâ˼ ÎÒÖªµÀÒªÒ»¸ö163·þÎñÆ÷ Ò»¸ö·¢ËÍÓÊÏäºÍÃÜÂë »¹ÓнÓÊÜÓÊÏä È»ºó»¹ÐèҪʲô ²»¶®°¡ û½Ó´¥¹ý ËÃ÷°×Äܸø˵Êé²» ºÃ¸ßÉî¡« ¶àл ºÜÃ÷È· ÄǸötoaddÊǶ¼Áбí°É Ⱥ·¢Óõģ¿ÊÇÂðÒýÓà ¶àл ºÜÃ÷È· ÄǸötoaddÊǶ¼Áбí°É Ⱥ·¢Óõģ¿ÊÇÂð Êǵģ¬²»¹ýEMail²»ÓÃȺ·¢Õâ¸ö´Ê£¬Ò»°ãÓ᮳ËÍ¡¯ºÍ¡®ÃÜËÍ¡¯ ·Ç³£¸Ðл
Ïà¹ØÎÊ´ð£º
ÇëÎÊÏ£¬ÎÒµÄÊÇpython2.5°²×°ÁËPILÄ£¿é£¬È»ºó±àд³ÌÐò´ò¿ª±¾»úÉϵÄÒ»¸öͼƬʱ£¬ÎªÊ²Ã´ÀϳöÏÖ´íÎóÄØ£¬ÀÏÊÇÕÒ²»µ½Í¼Æ¬£¬´íÎóÌáʾÈçÏ£ºFile "C:\Python25\Lib\site-packages\PIL\Image.py", line 1888, in o ......
ÓźñµÄ¸å³ê£¬³ÏÕÐPython¼¼ÊõÈËÔ±²ÎÓë¸÷ÖÖ¼¼ÊõÊé¼®³ö°æ¡£ ͨ¹ý¸ÃÊé¼®£¬×÷Õß¿ÉÒԵõ½Èçϱ¨³ê£º 1¡¢·áºñµÄ¸å³ê¡£ 2¡¢Êé¼®Öø×÷µÄÊðÃûȨ¡£ 3¡¢¶Ô×÷ÕߺÍÊé½øÐÐÐû´«£¬Ìá¸ß×÷ÕßÔÚ¼¼ÊõȦ×ÓÀ ......
pythonµÄPIL¿â×Ô´øµÄ·½·¨Ö»ÄܽøÐоØÐεÄÇиÈç¹ûÎÒÓÐÁËÒ»¸ö¶à±ßÐθ÷¸ö¶¥µãµÄ×ø±ê£¬ÈçºÎ¶ÔÏÖÓеÄͼƬ°´ÕÕÕâ¸ö¶à±ßÐνøÐÐÇиîÄØ£¿ ²»Ò»¶¨ÒªÓÃPIL¿â£¬ÈκÎÄÜʵÏÖÕâ¸ö¹¦Äܵķ½·¨¶¼ÐС£ ͼƬÇиîµÄjs²»ÊǺܶàÂ𣿠......
ÓÉÓÚÊǵÚÒ»´Î½Ó´¥python,Óï·¨Ò²²»¶® µ«ÊÇÁÙʱҪÓõ½... Çë°ïæעÊÍÒ»¶Î´úÂë...²»ÐèҪÿһ¾ä¶¼×¢ÊÍ,ÒòΪÊÇѧjavaµÄ,ËùÒÔ»ù±¾Ë¼Â·»¹ÊÇÓÐÒ»µã #************************************************ ......