Taitava\SentEmails\ImapSentFolderFactory
Synopsis
class ImapSentFolderFactory
implements
Factory
{
- // members
- private static array $mailboxes = ;
- // methods
- public ImapSentFolderPlugin create()
- private void include_plugin_classes()
- private void callback_before_saving()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Extensible
Implements
- SilverStripe\Core\Injector\Factory
Members
private
-
$mailboxes
This should be an array with the following structure: ``` [ 'email.address@somedomain.tld' => [ 'host' => 'imap.somedomain.tld', 'port' => 993, 'username' => 'email.address', 'password' => 'verysecretdonotsharepubliclyintheinternet', 'sent_folder' => 'Sent', ], 'default' => [ 'host' => 'imap.somedomain.tld', 'port' => 993, 'username' => 'other.account', 'password' => 'verysecretdonotsharepubliclyintheinternet', 'sent_folder' => 'Sent', ], ] ```
Methods
private
- callback_before_saving()
- include_plugin_classes() — SilverStripe doeesn't autoload taitava/swiftmailer-imapsentfolder because it doesn't contain a _config folder nor a _config.php file. I don't know a better way to include these PHP classes, so do it just with the basic require_once command.
public
- create() — Creates a new service instance.