How Emails and PDFs are rendered
There are some fundamental differences between designing emails and PDFs. PDF templates are rendered from React code to a PDF document before being sent as attachments or exported. PDF documents are static; they preserve exact positioning, fonts, and graphics. Email templates are rendered from React to HTML. The HTML is sent to your recipient’s email application. It is up to the recipient’s email application to render the HTML. Can I Email is a good resource for checking syntax support.Assets
Assets in Emails (fonts and images) must be publicly accessible, since recipients email clients fetch them directly from the source when viewed. The email we send is just HTML code with a link to the asset.Email.tsx
PDF.tsx
How to get data from project and logs
Data from the active project is available with theuseDaytalog hook.
Daytalog.tsx