Simple solution to prepare a Symfony Email by implementing an interface in any class
The idea is to provide a common interface to for objects to be sent via Symfony Mailer.
Install using composer
composer require glpzzz/object2email
$p = new Person() // or obtain from db
// work with it, modify it, set the properties...
$mailer->send($p->toEmail());