Receiving / retrieving email in CakePHP

前端 未结 3 753
盖世英雄少女心
盖世英雄少女心 2021-02-09 13:33

I am developing a basic yet highly customized CRM for a small training centre which has the ability to store student records and also send emails to them. I\'m using SwiftMailer

3条回答
  •  一整个雨季
    2021-02-09 13:56

    Thanks to everyone for your answers, but I've been doing some more searching and it looks like the solution is actually incredibly simple.

    Basically, with the help of a plugin, I can set up the mail server in databases.php as a datasource and then write a Model and Controller to interact with it.

    Here's the example I found: https://github.com/kvz/cakephp-emails-plugin

    Edit: the repo has been deprecated and is now available at https://github.com/kvz/deprecated/tree/cakephp-emails-plugin

提交回复
热议问题