Email integration

后端 未结 6 1101
终归单人心
终归单人心 2021-02-02 00:54

I was wondering if someone could help me out. In some web application, the app will send out emails, say when a new message has been posted. Then instead of signing into the a

6条回答
  •  误落风尘
    2021-02-02 01:49

    A common tool used for this purpose is procmail.

    You need to set up dedicated email address (which is the "from_email" address in your outgoing email). Then your MTA, such as postfix or qmail, will deliver mail to that address to procmail instead of an actual mailbox.

    Procmail can then pass the email on to your python script that can do updates in the app. See standalone django scripts by James Bennett on how to code python scripts that can work with your app.

提交回复
热议问题