如何通过谷歌应用引擎发送验证链接

时间:2016-04-13 07:42:15

标签: email google-app-engine

我试图发送验证码的链接:但是对于某些共鸣,它不会发送它。当我添加http://dddd-dogi-1234 .appspot.com / verifier?vc ='它们之间的空间有效但链接除以2 ..:/

  url = str('http://' + APP_NAME + '/verifier?vc=' + v_code)

message = \
    mail.EmailMessage(sender='daniel fisher <yad4project@gmail.com>'
                      , subject='Verification Confirm'
                      )

message.to = 'Albert Johnson <Albert.Johnson@example.com>'
st = 'http://dddd-dogi-1234.appspot.com/verifier?vc='
msg = \
    """ Dear User:
        In Order to Register 'yad 4' app you must first confirm youe email address
        please visit %s and add the verification number on screen to the app

        Good luck!
                                                                        The yad4 project Team""" %st



message.body =  msg
message.send()

任何想法为什么?以及如何解决它?

1 个答案:

答案 0 :(得分:0)

原因很可能就是这个开放的GAE问题:http://code.google.com/p/googleappengine/issues/detail?id=12786

作为一种解决方法,尝试使用2中断的链接来生存。明星问题,您将通过电子邮件获取状态更新,以便您可以在修复GAE问题时修复损坏的链接。

或者,如果电子邮件卷可以容忍,请将电子邮件发送给自己,然后修复链接并手动将其重新发送给最终收件人,直到问题得到解决。