2013-04-13 65 views
0

即時嘗試接收電子郵件使用appengine,我想從應用程序引擎文檔實現教程代碼。應用程序引擎python接收郵件python

一切似乎工作正常,每次在我的現場應用程序以及開發服務器獲得200代碼,但我沒有得到一個發件人或身體在日誌中。

對不起,如果它的東西言自明,但即時通訊完全被卡住

import logging 
import webapp2 
from google.appengine.ext.webapp.mail_handlers import InboundMailHandler 


class LogSenderHandler(InboundMailHandler): 
def recieve(self, mail_message): 
    logging.info("Recieved a message from: " + mail_message.sender) 
    bodies = mail_message.bodies('text/plain') 
    logging.info(bodies) 


app = webapp2.WSGIApplication([LogSenderHandler.mapping()], debug=True) 


- url: /_ah/mail/[email protected] 
script: handle_incoming_email.app 
login: admin 

inbound_services: 
- mail 

2013-04-13 14:12:10.556 /_ah/mail/[email protected] 200 670ms 0kb 
0.1.0.20 - - [13/Apr/2013:14:12:10 -0700] "POST /_ah/mail/[email protected] HTTP/1.1" 200 84 - - 

回答

2

似乎因爲你需要重寫的功能是接收,

+0

謝謝,有點尷尬沒有收到。 – tanky

相關問題