2012-06-30 4 views
0

수신 이메일을 처리 할 베어 본 앱 엔진 앱을 얻으려고합니다. 나는 Receiving Email 튜토리얼을 따라 갔고, 나의 코드는 정말 미미하다.앱 엔진 : 수신 이메일 거부 됨

내가 [email protected] 말을 이메일을 보낼 때 내 응용 프로그램에 도달하기 전에

그러나, 구글은 거부 :

다음 수신자에 대한 메일 전송이 영구적으로 실패

[email protected] 

영구 실패에 대한 기술적 인 세부 정보 : Google에서 사용자의 메시지를 배달하려고했지만 수신자 도메인에서 거부했습니다.

import logging, email 
from google.appengine.ext import webapp 
from google.appengine.ext.webapp.mail_handlers import InboundMailHandler 
from google.appengine.ext.webapp.util import run_wsgi_app 

class LogSenderHandler(InboundMailHandler): 
    def receive(self, mail_message): 
     logging.info("Received a message from: " + mail_message.sender) 

어떤 생각이 왜 이메일이 거부되고있다 :

application: myapplication 
version: 1 
runtime: python27 
api_version: 1 
threadsafe: false 

handlers: 
- url: /_ah/mail/.+ 
    script: handle_incoming_email.py 

- url: /.* 
    script: myapplication.app 

inbound_services: 
- mail 

및 handle_incoming_email.py 튜토리얼에서 가져옵니다 내 애플리케이션 제목입니까?

답변

3

yaml 파일에 login: admin이 누락 된 것으로 보입니다.

[email protected]이 아니라 [email protected]입니다.

+0

감사합니다. 결국 나는 이메일 이메일이 .appspotmail.com으로 끝나는 것에주의를 기울이지 않았다. 로그인 : 관리자가 필요하지 않습니다, actully 내가 누군가를 이메일로 보낼 수 있도록 그것을 의도적으로 제거했습니다. 추가 참고 : app handler를 잊어 버렸기 때문에 app = webapp.WSGIApplication ([LogSenderHandler.mapping()], debug = True) app.yaml handle_incoming_email.py에서 handle_incoming_mail.app로 변경되었습니다. 매력처럼! – Hoff