1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Avatar Images in HTML email not rendered

Discussion in 'Resolved Bug Reports' started by tenants, Aug 6, 2013.

  1. tenants

    tenants Well-Known Member

    I've noticed, when watching threads / forums / custom

    The emails that get sent to the user always has a broken image

    It seems, no matter what helper you are using to get an image, the image always returns as (for core emails too):

    http://styles/default/xenforo/avatars/avatar_s.png

    Which is obviously a broken image
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Can't confirm this.

    I get a lot of e-mails and they all contain the correct avatar.

    Example:

    upload_2013-8-6_12-42-18.png

    EDIT: Do the other links in the e-mails work ok? At first glance I'd say that would only happen if you don't have the correct board URL configured.
     
  3. Mike

    Mike XenForo Developer Staff Member

    There's a <base> tag that makes this work correctly. This support may vary based on email clients (which have notoriously horrendous and inconsistent HTML support).

    We have some canonicalization support here, but I don't think we can be positive that it's going to work in an email.
     
  4. tenants

    tenants Well-Known Member

  5. tenants

    tenants Well-Known Member

    That worked, I got chris's avatar image

    I wonder why the base isn't working when sent from my forums
     
    Chris D likes this.
  6. tenants

    tenants Well-Known Member

    So, the email client from my forum is ignoring the base URL?

    and this is fairly common?
    Would it be possible when calling the helper via the email template to avoid using base
    I've seen this on 2 out of 2 servers, I'm unsure how common this is, but if it is common, it's still an issue
     
  7. tenants

    tenants Well-Known Member

    Yes, all the other links are correct (contain the full URL). It's just the images that are broken
     
  8. Mike

    Mike XenForo Developer Staff Member

    It's likely just the <base> being removed or manipulated by the email client. I don't know why it would potentially vary per install though...

    I have tweaked this for 1.2.1 though, so the full URL should be used.
     
    tenants and Chris D like this.

Share This Page