Generation, not delivery
The package returns HTML. MIME messages, email transport, queues and physical attachments remain the application’s responsibility.
Email Generator composes HTML email from immutable documents and typed components. It integrates with Lemonade configuration, localization and the service container.
Build a document from headings, text, tables, buttons, columns, alerts and attachment lists. The renderer turns those components into a complete HTML email.
The package returns HTML. MIME messages, email transport, queues and physical attachments remain the application’s responsibility.
Create a document, add headings, text, tables, attachment lists or buttons, then call render(). Your application passes the resulting HTML to its own email transport.
<?php
$html = $emails
->create(locale: 'en', title: 'Welcome', preheader: 'Your account is ready.')
->heading('Welcome')
->text('Thank you for signing up.')
->button('Activate account', 'https://example.com/activate')
->render();Install the package with Composer. Its README covers any migrations and permission setup.
composer require johnnyxlemonade/email-generator:dev-mainjohnnyxlemonade/framework