This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Mohsin
Mohsin

The email configuration has fixed choices for mailing i.e. log, mail, sendmail, smtp, mailgun, mandrill. These are great options but it could be more flexible. I would like plugins to be able to hook into these settings and add their own mailing drivers. A plugin could have all the dependencies of that mailing driver and provide several features.

For example, if Mailgun were a separate plugin a plugin author would:

  1. Specify the name i.e. “Mailgun” which will appear in the mail configuration dropdown.
  2. Have a default SettingsModel. The fields of this model would appear below the dropdown in mailing configuration.

This allows provider specific features to be added and also favours the single responsibility rule. For example, Mailgun supports webhooks so if it were a separate plugin I would add a controller “mailbox” in the top navigation. And in the left side pane add Inbox, Sent Mail, etc. This functionality could be added using the webhooks and it makes a great plugin. An app would be able to manage all it’s mail’s too on it’s own than having to login somewhere else in the web mail to check out mail.

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.