Arthur Kushman
bbc33710c1
>= PHP7.0 refactoring ( #3343 )
...
* Fix loosly comparison to strict + argument types and return types for >=7.0
* Change hard-coded strings to ::class,
* Fix unit-tests failures - some relative to 7.0 phpunit env deployment
* Fix exception string + format return types
* Change string representation of new classes in traceLog to ::class
Credit to @arthurkushman
2018-01-12 00:23:20 -06:00
Samuel Georges
712dcf9412
Use alias instead of leading slash
...
Refs d292eeb85ecb57f2aa84ab573ea6467584f268e2
2017-11-03 07:57:33 +11:00
Luke Towers
d292eeb85e
Remove ambiguity around what classes are being used
...
Fixes https://github.com/octobercms/october/issues/3184 .
2017-10-20 21:39:54 -06:00
Wellyson Freitas
dcfe59b807
Adding method to return a list of MailTemplate objects ( #3152 )
...
* Method to return a list of MailTemplate objects (for `rainlab/translate-plugin` list translatable messages). See: https://github.com/rainlab/translate-plugin/issues/87
2017-10-04 14:06:17 -06:00
Samuel Georges
5a417d72d3
Sending raw markdown emails
...
If raw == (string) content, then it is a markdown email (html/text are ignored -- markdown sets them)
If raw == (bool) true, then it is true raw (html/text must be supplied)
2017-07-30 00:25:11 +10:00
Samuel Georges
31ffadbc4c
Introduce mail branding settings
2017-07-22 17:20:48 +10:00
Samuel Georges
4663531de2
Introduce mail partials + twig
...
Improve layout seeding
2017-07-19 21:14:08 +10:00
Samuel Georges
5a4e2b6b11
Email templates now use Markdown
...
Move mail template management to MailManager
2017-07-14 16:20:53 +10:00
Samuel Georges
00ddd8e2b4
string -> ::class + docs
2017-05-20 20:01:19 +10:00
Samuel Georges
0a981a25f7
API docs progress
...
Controller -> SystemController for consistency
2017-03-16 17:08:20 +11:00
Samuel Georges
0111100990
Shared view vars now passed to content blocks and mail templates
2016-06-04 07:26:16 +10:00
Samuel Georges
7affc4bec8
Apply layout to unregistered mail templates
2016-03-29 18:17:25 +11:00
kaserv
51d1f1a684
issue #1819
2016-03-01 10:20:20 +04:00
Samuel Georges
fa4984cbaf
Minor touch up
...
Refs https://github.com/octobercms/october/pull/1665
2016-01-02 11:23:29 +11:00
Sergei Novikov
922cf30cb6
Fix mail subject on PHP 5.4
...
Check if subject set in closure
If subject setted in template, changing in closure like:
Mail::queue("template", [], function ($message) use ($subject, $email) {
$message->subject($subject)->to($email);
});
has no effect.
2016-01-02 10:53:16 +11:00
Samuel Georges
bbfba7dc34
Remove the use of Twig_Loader_String, added Twig::parse
2015-09-30 05:26:00 +10:00
Samuel Georges
942a8c000e
Add helper for listing file + db templates
2015-08-24 20:31:44 +10:00
Samuel Georges
4e507823ea
Sending mail now passes the parent data set to the layout
...
Renamed conflicting variable message -> content
Fixes #1070
2015-05-02 09:49:24 +10:00
Sam Georges
c83797231d
Subsequent expressions are on a new line (see developer guide > PSR exceptions)
2014-11-01 12:00:45 +11:00
Stefan Talen
f85087eac6
Updating modules/system
2014-10-18 11:58:50 +02:00
Sam Georges
8d73924fbb
Add docs to class headers
2014-10-03 18:00:21 +10:00
Sam Georges
e29d88e07a
Validation + Purgeable traits must now be used in the Model class definition
2014-07-11 21:15:21 +10:00
Sam Georges
3617a7fea8
Important! All references to *Email* have been changed to *Mail*
...
(This change might hurt a little, sorry!)
2014-07-04 19:14:15 +10:00