473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

HTML mail design - Writing text above image

119 100+
Hi all,

I am designing a HTML mail template which will have images as well as text in it.

i am trying to have a image in the background and want to write dynamic text above that. say name of the viewer who view the mail.

I found that CSS will not support any more for mail templates. this will be a problem always.

Is there any way to show a dynamic text by keeping the background image in back end. this should support all mail servers like (gmail, yahoo, outlook etc.,)

Thanks much!

Magesh
Nov 30 '10 #1
5 3084
JKing
1,206 Expert 1GB
No. No matter what you do some mail clients just don't support background images. The best thing to do is set a background color along with the image.
Nov 30 '10 #2
phpmagesh
119 100+
Thanks King! i did as you said,

however, Is there any way to write the dynamic text above image. i placed the image using <img> in <td>.
Nov 30 '10 #3
JKing
1,206 Expert 1GB
No, you would have to make the image a background image.
Expand|Select|Wrap|Line Numbers
  1. <td style="background-image:url(http://www.example.com/images/background.jpg');background-color:#ffffff;">
  2. Dynamic text here.
  3. </td>
  4.  
Here's a resource that you may find helpful, it is a guide to css support for major email clients. CSS Support Guide
Nov 30 '10 #4
phpmagesh
119 100+
background-image:url is not working as we expected. i google many solutions, which says css will not support in html mail.

i tried with the above method but image is not loading. i can see the text in that place
Nov 30 '10 #5
JKing
1,206 Expert 1GB
Any CSS has to be inline. As I have said before background-image is only supported by some email clients so therefore you have to also include a background color for those that do not support images.

My previous example was only an example you would need to replace the URL with your own.
Nov 30 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: steven | last post by:
Hi, I can float the image left or right so the text will float around it, but only if the top of the image is aligned with the start of the paragraph. I'd like the image be a little below that, so...
0
by: Shabam | last post by:
I need to mass mail some users on my system, and would like to render them in html if possible, but have a text fallback just in case they can't display html mails. How should I design my form? ...
1
by: MickeBoy | last post by:
Hi all! I'm trying to send a HTML mail using the MailMessage class. Sending the message works fine, but there is something funny with the received message. I use the code below to generate and...
2
by: Roel Korsten | last post by:
Hello all, I've got a strange one: I'm sending HTML mail via the System.Web.Mail namespace: Dim ObjEmail As New MailMessage Dim sb As New StringBuilder ObjEmail.To =...
4
by: Dragon | last post by:
Hi, Does anyone know of any examples for writing text into images? I have a program that collects some system information and I would like to write that text into a BMP or JPG file. Thank you.
4
by: J Huntley Palmer | last post by:
How may I setup a proper HTML mail message with embedded href links using PHP, that follows all the MIME rules? Any examples or links would be appreciated. Thanks!
1
by: larzeb2000 | last post by:
I am a beginner having difficulty placing text which is hot below an image, with the text centered horizontally with the image. I have tried background-image and can get the text above the image,...
6
by: aliasDyego | last post by:
Hi all, I am trying to display both text and image fields from MySQL in PHP page but unfortunately it doesn't work. Here is the code i used: $id = $_GET; $sql = "SELECT * FROM user,...
7
by: redblue | last post by:
Hi all, i am new in php, I looked lots of example from Forum and tried online server but its nt work at all, i know i may be doing great mistake to sending HTML mail. last time i tried this code...
2
by: wafdenis | last post by:
Hi, I am trying to send html mail() to a number of people at once but it appears as spam in gmail, does not appear in yahoo and appears as jibberish in outlook. I need help in this area as am new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.