Comments (3)
@daftspunk You were right, I was using the format below. I will follow the documentation to revision my function. Thanks!
public function registerMailTemplates()
{
return [
'templates' => [
'vendor.plugin::mail.form_submit' => 'vendor.plugin::lang.strings.mail_form_submit',
],
'layouts' => [
'custom' => 'vendor.plugin::layouts.artisan'
],
'partials' => [
'custom_header' => 'vendor.plugin::partials.header',
'custom_footer' => 'vendor.plugin::partials.footer',
]
];
}
from october.
Hey @Dahfrenk
Check the registerMailTemplates
method. Some older plugins were using this format:
// Invalid syntax from v3.6
[
'vendor.plugin::view.hint.1' => 'vendor.plugin::lang.string.1',
'vendor.plugin::view.hint.2' => 'vendor.plugin::lang.string.2',
'vendor.plugin::view.hint.3' => 'vendor.plugin::lang.string.3',
]
The language string part was never used for anything, or documented anywhere, but some plugins were using this syntax (including official ones) and it likely replicated from there.
Change it to either:
// Valid syntax (backward compatible)
[
'vendor.plugin::view.hint.1',
'vendor.plugin::view.hint.2',
'vendor.plugin::view.hint.3',
]
Or, if you want to use the 3.6 syntax:
// Newer syntax
[
'shorter:mail.code.1' => 'vendor.plugin::view.hint.1',
'shorter:mail.code.2' => 'vendor.plugin::view.hint.2',
'shorter:mail.code.3' => 'vendor.plugin::view.hint.3',
]
Related documentation: https://docs.octobercms.com/3.x/extend/system/sending-mail.html#registering-a-template
Hopefully it helps.
from october.
Thanks for reporting back, we've added something to the release notes about this: https://octobercms.com/support/article/rn-37#short-mail-templates
from october.
Related Issues (20)
- Use "merge keys" / "block definitions" for grouped repeaters HOT 2
- Page in Backend List is not applied correctly after filterChange HOT 1
- Multisite & Combiner - cannot find /combiner/xxx files on all sites HOT 8
- Default Value for Balloon-Selector not applied if the field is added via addTabFields()
- Returning False in model.before…() Still Flashes Success HOT 2
- Implement select For type: taglist HOT 5
- Call to a member function getKey() on null HOT 1
- Unable to show Relation features in backend forms when nested HOT 1
- Watch data-list-checked-request without user button click HOT 3
- October 3.6 - Update error HOT 4
- Missing background image on login page HOT 1
- Navigation items visible without permissions HOT 2
- Error when sending e-mail HOT 2
- In Safari, list filters are not aligned correctly. HOT 1
- Wrong Order for displayMode: sidebar on Small Screens HOT 1
- Group Scope for Parent/Nested Relations HOT 1
- Class 'Str' not found HOT 2
- Call to undefined method October\Rain\Database\Relations\AttachMany::getRelatedKeyName() HOT 1
- Error exporting models using csv_custom file format HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from october.