email template with image

0
Hello, I want to make an e-mail with the logo of the company from who I send a mail. Is this possible with the email template module, and if so, how? Kind regards, Steven Keersmaekers
asked
3 answers
3
  • base64 encode the logo using e.g. https://www.base64encode.org/
  • add the logo to the html-mail like: <img src="data:image/png;base64,xxx"> (replace xxx with the base 64 encoded image data)
  • example": <img src="data:image/png;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAAhAD8DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9U6ayiRSrDKkYIp1FAHM31qbOcoeV6qfUVXrpb+zF5AV/jHKmubZSrEEYIOCKxkrHVGXMhKfHG00iooyzHAplbmj2XlR+c4+dh8vsKSV2OUuVXLlrbLawrGv4n1NTUUVucgUUUUAFZGs2X/Lwg9nH9a16RlDKVIyDwRSauVF8ruc/pdl9qm3MP3acn39q6Go7e3S2jCIMKKkpJWHKXMwoooqiAooooAKKKKACiiigAooooA//2Q==">

 

answered
2

Hi Steven – in case you can access the company logo via an external URL *somewhere*,

use the Modeler and replace the Rich Text widget on the EmailTemplate Edit-page (HTML tab) by a normal text area and code the HTML body part in HTML directly. It’s cumbersome though. And use the <img src=URL> tag to include the external logo URL.

Regards, Boris

answered
0

You can create your emal template complete in HTML.  You could use the Rich text widget to make it easier for the one who creates the templates. You can then even drag and drop the images in the text.

Regards,

Ronald

 

answered