Hey, I’ve created a new email template “add_project” that works well for sending text information.
But I wanted to add some styling to it.
This is the options.message field of “add_project”
<style>
.wrapper {
background-color: blue;
font-size: 20px;
}
</style>
<div class="wrapper">
<p>You're added to project.</p>
<img src="<%= URL %>sample.png" />
<p><%= URL %> Bye</p>
</div>
The URL is converted into the required value ( URL : new URL(strapi.config.url)) in the p tag but not for the img tag, also the stylings are not applied.
Inline styling works, but that is too hard, as the actual content to be sent has much more styling.
Also tried adding link tag replacing the style tag above (by linking to a css file), but that doesn’t work either.
Added image ‘sample.png’ in public folder but the src attribute value is https://ci3.googleusercontent.com/proxy/9NgE4vxW … 0-d-e1-ft#http://localhost:1337/axiom-logo2.png
Not sure if it’s the correct way to do it, but any help is appreciated.
- Have internal or external css to be added (not inline as it works, but is complex to manage)
- To load custom fonts into it
- to add images from public folder or any other folder (used to add a logo in email)