In cakephp documentation it is stated that you can use both text and html template files if you set up like this :
$email = new Email();
$email
->template('welcome', 'fancy')
->emailFormat('both')
->to('bob@example.com')
->from('app@domain.com')
->send();
This would use the following template files:
src/Template/Email/text/welcome.ctp
src/Template/Layout/Email/text/fancy.ctp
src/Template/Email/html/welcome.ctp
src/Template/Layout/Email/html/fancy.ctp
How does it use both html and text files here? Does it check both text files and html files when creating a view? What if there are differences in those templates?