How to make an email signature in Outlook with HTML

Adán Sierra 0 Reputation points
2023-05-03T06:18:03.3633333+00:00
Hello good. I'm trying to create a signature in Outlook with HTML, everything appears correctly and if I run it from my computer it doesn't give me any problems, but when I pass it to Outlook I see everything except an image that appears with the company logo.

The line of code where the image is is this:

<div style="background-image: url('1_fondo-FIRMA.jpg'); background-repeat: no-repeat; background-size: contain; padding: 10px; font-family: Arial, sans-serif; font- size: 14px; width: 600px;">

I attach the rest of the code in an image.
Outlook
Outlook
A family of Microsoft email and calendar products.
3,812 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Brice Vanderstraeten 110 Reputation points
    2023-05-03T20:47:39.53+00:00

    Hi

    You can't store an image in outlook, you need to host one of the image somewhere else. First put the image in a url which is publicaly available and use the complete url instead of the name of the file only (with the name of the file only it will only work on your computer)

    Then I would put more something like that for the image:

    <img src="<url of the file>" border="0" style="width:600pt;height:14pt;">


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.