avn / symfony-send-email
0.1.1
2023-06-03 17:45 UTC
Requires
- php: ^7.4
- symfony/framework-bundle: ^5.4
- symfony/mailer: ^5.4
This package is auto-updated.
Last update: 2024-12-03 20:46:45 UTC
README
Description
The service sends html email via symfony/mailer.
Usage
class SomeController extends AbstractController { public function index( SendEmailAction $sendEmailAction ) { $sendEmailAction->execute( new SendEmailRequest( 'login@domain.zone', //to 'Greetings!', //subject 'Hello, it`s me!' // textContent '<p>Hello, it`s me!</p>' //htmlContent ) ); } }
Don`t forget
Add parameter app.email.from to config/services.yml. Set email from as a value.