Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: making emails prettier?

    1. If the image is referenced in the template, then it's being called. Whether you've got something on your server blocking its access from your email client is yet another matter.

    2. Email clients support a VERY old HTML specification. As kuroi mentioned, they don't support contemporary things like DIVs very well. And, similarly, they don't support linked stylesheets very well. Especially the web-based clients. That's why they're embedded instead of linked.

    (In v2.0, Zen Cart will have the ability to save a common stylesheet in the email folder and it will "suck it in" to embed it in the email, thus making the maintaining of the css a little more straightforward. In the meantime, you can build a common stylesheet and just copy-and-paste the same stuff in all your templates. It's not as convenient, but only takes a couple minutes to update them all.)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #2
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: making emails prettier?

    Quote Originally Posted by DrByte View Post
    1. If the image is referenced in the template, then it's being called. Whether you've got something on your server blocking its access from your email client is yet another matter.
    It is indeed referenced in the template. No conditions or anything around it. File exists, and is visible by pathname in a browser. The file email_template_welcome.html also references a variable $EMAIL_GREETING for which I can't find a define. I'm starting to wonder if this file is even being invoked at all. Is it possible that the welcome email is being generated by another means?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: making emails prettier?

    That file is for the welcome email, sent when someone registers a new account.

    $EMAIL_GREETING gets populated with the data from EMAIL_GREETING in your language file.

    You can learn about the variables in the templates by reading the docs in the /docs/ folder of your site.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: making emails prettier?

    Well, I don't know what to say. When I register as a new user, the email I get has no header image. Also, the sample I look at in admin has no image as well. When I created this user, I specified HTML email.

    It appears to be a certainty that if email_template_welcome.html is called, the image is rendered. This leads me to conclude that it *isn't* being called. Is there any other way such an email could be generated?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: making emails prettier?

    Have you looked at the raw HTML of the received message inside your email client where the image is allegedly not appearing? What's the HTML showing there?

    And, if you attempt to visit that image on your site via your browser, what happens? Do you *see* the image? Or do you get an error because something on your server is blocking it?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: making emails prettier?

    Quote Originally Posted by DrByte View Post
    Have you looked at the raw HTML of the received message inside your email client where the image is allegedly not appearing? What's the HTML showing there?
    I don't know how to do that. I'm using the most recent version of Mac Mail, though, and it showed me the image in the example I posted at the start of this thread.

    I also viewed the ZC welcome email using a browser email facility, and it didn't show up there, either.

    And, if you attempt to visit that image on your site via your browser, what happens? Do you *see* the image? Or do you get an error because something on your server is blocking it?
    I see it:

    http://www.cinderellaantiques.com/shop/email/header.jpg

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: making emails prettier?

    Quote Originally Posted by mzimmers View Post
    I don't know how to do that. I'm using the most recent version of Mac Mail, though, and it showed me the image in the example I posted at the start of this thread.
    Command+Option+U will show you the email headers and the raw HTML lower down.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 11 Mar 2016, 02:14 AM
  2. v154 Order confirmation emails and Contact Us emails not being received
    By jcrewe in forum General Questions
    Replies: 5
    Last Post: 22 Mar 2015, 06:36 PM
  3. Replies: 3
    Last Post: 10 Jan 2013, 07:25 AM
  4. New Mod: prettier professional breadcrumbs
    By bonnit in forum All Other Contributions/Addons
    Replies: 39
    Last Post: 21 Oct 2011, 08:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg