Does anyone know if it is possible to override the message content in CakePHP CakeEmail version 2.9.1?
I'm using a template to format my e-mail which is working great, but just before I send the e-mail I want to encrypt it using GNUPG. The idea was to get the fully rendered message, parse it through my encryption function and then send it, is this possible?
Plan B would be to do everything from the AppShell but I wanted to uterlise the Html helper, is it possible to load this as a Helper in the AppShell.
I'm limited to running inside a plugin as the main application is controlled from a third party.
Thanks in advance.
您可以创建一个执行此操作的自定义视图类( https://book.cakephp.org/2.0/en/views.html#creating-your-own-view-classes ),然后通过viewRender
方法将其传递给CakeEmail对象。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.