![]() Just create new views and use them in the mailables class. That's it! You have successfully installed and configured the MJML package for use. In case this does not happen or the MJML CLI is installed globally, please update the configuration file likewise. To download and install packages globally, on the command line, run the following command: npm install -g .In the build method, use: $this->mjml('view.name') īy default, the package will automatically detect the path of the MJML CLI installed locally in the project. MJML is a special project that has been nurtured for months at Mailjet, from its early stage when we were still working on Email Editor, our drag-and-drop email design tool, to its final phase of launch as an open-source project. ![]() Use Asahasrabuddhe\LaravelMJML\Mail\Mailable You will also need to install the MJML CLI:Ĭreate a view containing MJML in your resources/views directory.Ĭreate a mailable class using artisan command: php artisan make:mail MJMLEmail I am trying to install Mjml email marketing framework on my MAC but I keep receiving this error below enter code here MacBook-Air:// desina npm init -y
0 Comments
Leave a Reply. |