Reply To: Background image in email notifications?

Home Forums Quform WordPress Background image in email notifications? Reply To: Background image in email notifications?

#28895

michael_baxter
Participant

Not sure if this addresses your question directly, but I wanted to remind you that Email CSS must be inline. It cannot refer to external sources.

So, for example, you would include the <style> configurations at the top of your email definition. (I have done it several times)

<style>
body {
background-color: gray;
}
</style>

This makes the background color of my email gray. In order for your email to use the desired background image, you would also need to ensure it was publicly available the recipients, and use a full URL, not a relative URL.

<style>
body {
/* NOT THIS */
background-image: url("paper.gif");
/* NOR THIS */
background-image: url("/wp-content/uploads/2019/02/paper.gif");
/* THIS! */
background-image: url("https://your-site.com/wp-content/uploads/2019/02/paper.gif");
}
<style>

Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy