Background image of DIV - Not appearing but image is valid - html

I cannot get the image to display... in an HTML e-mail. It does display in the browser. I have looked over similar posts and think I am missing something obvious. Trees/forest. Any ideas? TIA.
code:
<div style="margin-left:10px;background-image:url(http://info.enterprisedb.com/rs/enterprisedb/images/banner_img.jpg);background-repeat:repeat-x;width: 750px; height: 210px;">
testing2
</div>
I should add that this does display in some browsers, but when coming through in an e-mail it only works in some cases - Gmail is oK, Outlook is not.
For some reason it doesn't work in an certain e-mail programs, though its pretty basic HTML. I've been testing with sharklasers which also does not display the image. If I put it in the e-mail as a standard img link (not in the div) it displays fine in these e-mail programs.

By default, OWA(Outlook Web App) will block some external content in HTML messages, such as pictures or sounds linked within the message. These links are hidden references (not the underlined kind that you click to activate) in the HTML source code to an external location on the Internet, such as a website. They are triggered when the message is opened or previewed, which prompts a download of the external content.
Reference : link

After looking here : Background images not working in Outlook 2007 and later , it appears that the only way to make background-image work in Outlook is to use it on the <body> tag. That may not be what you want but we can't do much about that, that's how Outlook is made :/

Related

Contact form 7 adding an image to the email body

I am trying to add some images to the email body that gets sent to the users email (not as attachments) but when they arrive via the email they are broken and do not show.
I have tried using:
<img src="https://example.com/wp-content/uploads/2019/11/myimage.jpeg">
<img src="wp-content/uploads/2019/11/myimage.jpeg">
<img src="uploads/2019/11/myimage.jpeg">
But nothing works, I thought it would be as easy as adding an image as you do via html but it doesnt seems to work. Does anyone know how to do this?
Are you sending the email as an HTML doc or are you just putting HTML text into the email doc?
Your email service might be reading your code incorrectly, thinking it's just text being sent in an email document.
Do some troubleshooting. Can other HTML elements (like headings and hyperlinks) appear in your email? If not, it's an email problem and not one with your code.
That being said, the 2nd and 3rd links are not viewable via a browser - it looks like they are pulling from your system as opposed to being an online link. That might be part of the problem as well.

MIME-Email Images appear as tappable boxes on iphone

Ok, so I have an HTML email with several inline images (charts and such). The images are embedded using CID. The email works perfectly fine on all desktop platforms. My issue is that the images are no longer inline when you try to open the email on iPhone (IOS mail app or IOS Outlook).
This is what they look like on IOS mail:
And this is what happens when you tap one of those boxes:
(contents of the image are irrelevant)
So, they load fine if you tap them individually, but I really need them to appear inline. Any idea whats going on? I thought maybe the images were too large, but one of the images is only 12kb and it still doesn't appear. In total the email is only about 850kb, which really shouldn't be too big either.
A few things to note:
It is definitely sending properly as an HTML email, as all of the CSS in the titles and the HTML tables (not shown) are working perfectly.
There is no "Download all images" link at the bottom of the email, as many of the suggestions I have found online seem to say.
I have "Download remote images" enabled in my settings.
All of the images are .png
Any ideas are appreciated.
I found the issue. For whatever reason this happens when I am making an absolute reference i.e. (C:\ReportEmail\Data\Logo.png) to the file path in my code. If I put the images in the same folder as the script and make a relative reference to the working directory i.e.(.\Logo.png) it works fine. I have no idea why this is the case, as the two types of references should be pretty much identical in usage. Oh well.

Oulook 2010 displays images in mail signature at 166%

When I try and create an HTML email signature and choosing it as my signature in Outlook the resulting display is horrendous. It literally ignores all the inline styles I specify on my text (eg, font-size:13px) and appears to enlarge things by about 66%. Even when I use the signature editor, my images end up enlarged. All the content lives inside a table layout.
I've tried many fixes from around the web, including opening the HTML in a browser and selecting all, then copying and pasting into the editor window. Even when I insert the image via the editor, it still comes out at that bigger size on the receiver's end. I've tried adding additional headers too.
I'd appreciate any input to help me solve this. The signature works fine in Thunderbird.

Outlook-2010 does not display image alt-text. Shows "the linked image cannot be displayed..."

I have a scenario where I want to check whether the alt-text of image, added on mail, is shown correctly while sending a mail or not. To test this, we added an img tag in mail but gave nothing in src and added an alt-text.
Now the problem is that the outlook-2010, instead of showing the alt-text, shows its own message "the linked image cannot be displayed.....". How can we avert this message to check our alt-text. Is there a better way to test such scenario in outlook-2010.
You can't control such things. You have control over an alt text styling (in some cases), but some mail clients will do whatever they want with your html and inline styles.
The only solution is to make sure your mail can be read without images, like adding a text close to the image. Most of the time, my templates have both the image and the text close to one another.
Test in Gmail (or Yahoo or anything else) instead. Outlook won't show ALT text. Here is some reference to which clients support displaying ALT text

HTML Email jump links not working

I've written a HTML Email using tables (:sad face:) and it displays perfectly while using Internet Explorer's Send -> Page by Email. My issue is that my jump links
Go to the jump link
no longer work, thye just open the complete URL of the page that I was sending. I've looked through the source of emails in which the jump links do work and I saw that the jumps links looked like this
Word generated jump link
I tried adding this but I'm still getting IE opening and it's now going to http:///
Any idea if there's any extra tags I need to add or another way to get around this?
Essentially, this is something that has to do with the way Microsoft deals with Internet Security. It is best practice to avoid named (jump) anchors in HTML email, unfortunately. However, to overcome this you might want to provide a link to a webpage with the HTML email on, which can of course have named anchors.
You can read more about best practices for email design on this article at Sitepoint. There is also a great resource for HTML email design at the Email Standards Project.
You can try this!!
In outlook -> new email->attach file->insert(select the html file here)->insert as text(dropdown on the insert)
Which will make the jump links work.
but the problem is all with the active links and visited link color. Doing this leave you no control over visited and active link colors.
You could create the email template as signature.
Open the tempalte in IE and click CTRL+A to copy the page.
Create a signature and Page the content as it is.
Create a New email and insert the Signature. The template will be loaded.
I had the same problem. When trying to send a html page using Internet Explorer's Send -> Page by Email, the anchor pointed to the url of the webpage instead of to the internal link in the mail.
This can be solved by adding this in the head of the page:
<base href="" />