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

jort25758
jort25758

I love the file-based concept of OctoberCMS. Therefore I cannot understand why mail templates are stored in the database instead of files. It would be great if you can choose between database and filebase storage.

coder
coder

I think it's possible:

Place your template in plugin view directory (for example) /author-name/your-plugin/view/mail

eg. /author-name/your-plugin/view/mail/mytemplate.htm

php code:

Mail::send('author-name.your-plugin::mail.mytemplate' [...] check Mail documentation.

Last updated

jort25758
jort25758

True, but I aim for mail layouts also. As far as I know mail layouts should always be registered in the database itself. I have succeeded in registering them from within plugin.php, but I think that is too much a work around, it should be simpler.

1-3 of 3

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