We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to use layout with createMessageFromView in Mailer

Hello.

Right now I can send emails with incubator mailer. I'm using createMessageFromView with a view, but I can't set a layout, and Settemplate does not work here. So, I don't want to change all the views emails when I want to change something in common, It is therefore the layout email.

The class that I use is: https://github.com/phalcon/incubator/blob/master/Library/Phalcon/Mailer/Manager.php

Can I do that?

did you read this readme?