Ability to add Logo to email header and footer
Closed this issue · 2 comments
sudeshgutta commented
It would be great if we had an option to add an image along with text content as part of name property, so that we can have logo as part of header and footer
Currently only text content are allowed as part of header and footer
Expected Config Example:
const mailGenerator = new Mailgen( {
theme: "default",
product: {
name: "NAME",
image: "LOGO.png"
}
} );
Thanks!
sudeshgutta commented
Just saw that it can be configured and It would be great if this config was documented
eladnava commented
Hi @sudeshgutta!
Thanks for your suggestion, however, the logo
parameter is documented in the Usage section already as Optional product logo
:
// Configure mailgen by setting a theme and your product info
var mailGenerator = new Mailgen({
theme: 'default',
product: {
// Appears in header & footer of e-mails
name: 'Mailgen',
link: 'https://mailgen.js/'
// Optional product logo
// logo: 'https://mailgen.js/img/logo.png'
}
});