【问题标题】:mail sending from website从网站发送的邮件
【发布时间】:2011-03-27 07:26:09
【问题描述】:

我用 Python 开发了一个网站,托管在 Google Apps 上,我想从该网站发送电子邮件。

这可能吗?如果可以,我应该去哪里寻找方法?

【问题讨论】:

    标签: python google-app-engine email


    【解决方案1】:

    使用the Mail API

    【讨论】:

      【解决方案2】:

      这是一个快速入门的 sn-p:

      from google.appengine.api import mail
      
      mail.send_mail(
          sender='anything@your-app-id.appspotmail.com',
          to='john.doe@acme.com',
          subject="Hello, World!",
          body="..."]
      )
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-07-04
        • 2023-03-20
        • 2014-05-22
        • 1970-01-01
        • 2011-09-09
        • 1970-01-01
        • 2012-01-12
        • 2011-12-22
        相关资源
        最近更新 更多