This script cannot work in FileMaker. Send Mail sends out plain text emails. You can set up a calculation that extracts the text from your records and tables in your database, but the data is in plain text, it does not reproduce the design of your layout. The exact details of how you'd do that depend on the design of your database tables and relationships.
You can also generate a PDF of your current layout and send it as an attachment to your email.
And you can acquire third party produced FileMaker plug ins that offer html formatting for your email.