Configuring modules for email sending and formatting is a pain and confusing. Most mailing modules rely on Mailsystem module to help configure this.
In D7 Mailsystem 3.x there's an improved method of doing this by using a delegator class. https://www.drupal.org/project/mailsystem/issues/1508104. I propose that the class and related functions be put into core. The UI can stay out of core.
This will help any combo of modules share the responsibility of sending emails. One module can be used for formatting HTML (MimeMail, HTMLmail) and another for sending (SMTP, PHPMailer, Postmark, SendGrid, ...). The popular modules can then use the new class to allow other modules to share in the work and also provide a simple UI (without needing to install Mailsystem if they don't need that extra power).
Recent comments
I don't think this answers your question, but it might help someone with a related question. The layout template for any given layout is stored in config and you can programmatically...
How to programmatically change layout?
perfect, thank you
Edit Node fields
Component ID can be found here:
Edit Node fields