HTML Email - Graphics

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AmberCF
Forum Newbie
Posts: 3
Joined: Fri Jan 20, 2006 12:34 pm

HTML Email - Graphics

Post by AmberCF »

I'm trying to send an HTML-format email in a PHP page, which contains styles and images. The page sends fine and looks fine in NetworkSolutions WebMail but in Outlook or Hotmail, the format looks bad, for example, only the four corners of my panels are displaying with most of the middle overlaid by the background. Also, my text areas are too small. The images seem to be coming across but they are not displaying properly. Any ideas? :cry: :cry:
AmberCF
Forum Newbie
Posts: 3
Joined: Fri Jan 20, 2006 12:34 pm

Style Sheet

Post by AmberCF »

Never mind - I'm pretty sure this is a style-sheet issue. From what I can gather, a lot of mail readers use their own styles, which can mess up existing styles in the HTML. I guess I need to take out the style sheet(s).
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

I'm pretty sure its poor formatting of the HTML email. Build your email and view it in several different browsers first to make sure it looks how you want it to look. Then stick it in the mail() function.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
AmberCF
Forum Newbie
Posts: 3
Joined: Fri Jan 20, 2006 12:34 pm

Post by AmberCF »

Thanks for the advice.

I'm more of a programmer than a designer and I was reconstructing an html form that a designer had created so I was hoping not to have to reconstruct the form. As it turns out, our client doesn't really care about having their mail in html format, even though it would be much easier to read in this case, so I'm just going to rewrite it as text mail. However, I'm still curious about this problem ...

When I publish the output to IE, it looks great and, like I said, in WebMail, but you know how web designers will often print a small portion of a design element and then repeat it across the page? Well, in Hotmail it looks like that is happening. The page is supposed to have controls laid out across several light-colored panels, with a dark background behind, but in Hotmail, only the 4 corners and some edges of the panels print, as though something prevents them from repeating across their designated area. Anybody know how to fix that?
Post Reply