Documentation
¶
Overview ¶
Package emailshell is the Rivolt look for HTML email: a 560 px card under an emerald bolt mark, light and dark, system fonts, no images and no remote content. FromText wraps a plain-text body in it word for word, so the HTML part can never say something the text part does not. Every email Rivolt sends goes out in it: internal/email wraps any message that arrives without the shell.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromText ¶
FromText renders a plain-text email as HTML in the shell. Blank lines separate paragraphs, single newlines stay line breaks, and every http(s) address becomes a link whose text is the address itself. The last paragraph (the sign-off and the not-affiliated line) is set small and muted; the words are unchanged.
func FromTextCTA ¶ added in v1.0.2
FromTextCTA is FromText with one primary action: an emerald button labelled label that links to href, placed above the paragraph that holds the plain link (the fallback for clients that block buttons). href must be http(s) and appear in text; otherwise there is no button. The text part is not touched.
Types ¶
This section is empty.