Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Please help, very confused is this HTML correct?

Featured Replies

Hello I am knew here, I am using Magento and changing the default email templates and I am embedding some images at the footer with this code:

<p><a href="https://twitter.com/MadrokUK"><img src="http://www.madrok.co.uk/images/twitter.png" alt="Twitter" width="48" height="48" /></a> <a href="https://www.facebook.com/madrokuk"><img title="Facebook" src="http://www.madrok.co.uk/images/fb.png" alt="Facebook" width="48" height="48" /></a> <a href="http://www.youtube.com/channel/UCFwPI9hOKTV1K1bjjmuq8fA"><img title="Youtube" src="http://www.madrok.co.uk/images/youtube.png" alt="Youtube" width="48" height="48" /></a></p>

Now all I seem to get is this at the bottom of the email when it's actually sent:WC5oo8Q.png

 

However when I preview it in Magento it appears fine. Any idea why this might be happening I'm so confused by it, thanks!

checked with other type of emails? hotmail gmail outlook ?

Have a look to see if magento adds its own code into the email, look at the email source to see if the path is defined correctly.

Edited by inlinedivblock

  • Author

I'm guessing your email program blocks images by default?

 

Well my logo shows at the top however that is coded using a variable from Magento, I've tried using Hotmail and Thunderbird with no results I feel so confused haha.

  • Author

checked with other type of emails? hotmail gmail outlook ?

 

Have a look to see if magento adds its own code into the email, look at the email source to see if the path is defined correctly.

 

This is the whole email code, with the parts Magento has added and still a little confused why this isn't working:

 

<body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
<div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
<table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
<tr>
    <td align="center" valign="top" style="padding:20px 0 20px 0">
        <!-- [ header starts here] -->
        <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;">
            <tr>
                <td valign="top"><a href="{{store url=""}}"><img src="images/logo_email.gif" alt="{{var logo_alt}}" style="margin-bottom:10px;" border="0"/></a></td>
            </tr>
        <!-- [ middle starts here] -->
            <tr>
                <td valign="top">
                    <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;"">Hello, {{htmlescape var=$order.getCustomerName()}}</h1>
                    <p style="font-size:12px; line-height:16px; margin:0;">
                        Thank you for your order from {{var store.getFrontendName()}}.
                        Your order has been dispatched you can check the status of your order by <a href="{{store url="customer/account/"}}" style="color:#1E7EC8;">logging into your account</a>.
                        If you have any questions about your order please contact us at <a href="mailto:{{config path='trans_email/ident_support/email'}}" style="color:#1E7EC8;">{{config path='trans_email/ident_support/email'}}</a> or call us at <span class="nobr">{{config path='general/store_information/phone'}}</span> Monday - Friday, 9am - 5pm GMT.
                    </p>
                    <p style="font-size:12px; line-height:16px; margin:0;">
                        Your shipping confirmation is below. Thank you again for your business.
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    <h2 style="font-size:18px; font-weight:normal; margin:0;">Your Shipment #{{var shipment.increment_id}} for Order #{{var order.increment_id}}</h2>
                </td>
            </tr>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" border="0" width="650">
                        <thead>
                        <tr>
                            <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Billing Information:</th>
                            <th width="10"></th>
                            <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Payment Method:</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;">
                                {{var order.billing_address.format('html')}}
                            </td>
                            <td> </td>
                            <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;">
                                {{var payment_html}}
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <br/>
                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <thead>
                        <tr>
                            <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Shipping Information:</th>
                            <th width="10"></th>
                            <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Shipping Method:</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;">
                                {{var order.shipping_address.format('html')}}
                                 
                            </td>
                            <td> </td>
                            <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;">
                                {{var order.shipping_description}}
                                 
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <br/>
                    {{layout handle="sales_email_order_shipment_items" shipment=$shipment order=$order}}
                    {{block type='core/template' area='frontend' template='email/order/shipment/track.phtml' shipment=$shipment order=$order}}
                    <p style="font-size:12px; margin:0 10px 10px 0">{{var comment}}</p>
                </td>
            </tr>
            <tr>
                <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you, <strong>{{var store.getFrontendName()}}</strong><p>{{config path="general/store_information/address"}}<p/><p><a href="https://twitter.com/MadrokUK"><img src="http://www.madrok.co.uk/images/twitter.png" alt="Twitter" width="48" height="48" /></a> <a href="https://www.facebook.com/madrokuk"><img title="Facebook" src="http://www.madrok.co.uk/images/fb.png" alt="Facebook" width="48" height="48" /></a> <a href="http://www.youtube.com/channel/UCFwPI9hOKTV1K1bjjmuq8fA"><img title="Youtube" src="http://www.madrok.co.uk/images/youtube.png" alt="Youtube" width="48" height="48" /></a></p></center></td></p></center></td>
            </tr>
        </table>
    </td>
</tr>
</table>
</div>
</body>
  • Author

what you sent is from magento? I was asking for the source code after you have received it in your inbox, so you can see if the <img> src tag has changed?

Okay this is what I get when I check the HTML from the other end:

 

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <style type="text/css">
body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
</style>
    <title>Madrok - Madrok: New Order # 100000006</title>
  </head>
  <body style="background:#F6F6F6; font-family:Verdana, Arial,
    Helvetica, sans-serif; font-size:12px; margin:0; padding:0;"
    text="#000000" bgcolor="#FFFFFF">
    <div style="background:#F6F6F6; font-family:Verdana, Arial,
      Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
      <table cellpadding="0" cellspacing="0" width="100%" border="0">
        <tbody>
          <tr>
            <td style="padding:20px 0 20px 0" valign="top"
              align="center">
              <table style="border:1px solid #E0E0E0;" cellpadding="10"
                cellspacing="0" width="650" bgcolor="#FFFFFF" border="0">
                <!-- [ header starts here] --> <tbody>
                  <tr>
                    <td valign="top"><a
                        href="http://madrok.co.uk/index.php/"><img
src="http://madrok.co.uk/skin/frontend/base/default/images/logo_email.gif"
                          alt="Madrok" style="margin-bottom:10px;"
                          border="0"></a></td>
                  </tr>
                  <!-- [ middle starts here] --> <tr>
                    <td valign="top">
                      <h1 style="font-size:22px; font-weight:normal;
                        line-height:22px; margin:0 0 11px 0;" "="">Hello,
                        Nick Maddren</h1>
                      <p style="font-size:12px; line-height:16px;
                        margin:0;"> Thank you for your order from
                        Madrok. Once your package ships we will send an
                        email with a link to track your order. You can
                        check the status of your order by <a
                          href="https://madrok.co.uk/index.php/customer/account/"
                          style="color:#1E7EC8;">logging into your
                          account</a>. If you have any questions about
                        your order please contact us at <a
                          href="mailto:customersupport@madrok.co.uk"
                          style="color:#1E7EC8;">customersupport@madrok.co.uk</a>
                        or call us at <span class="nobr">01642927747</span>
                        Monday - Friday, 8am - 5pm PST. </p>
                      <p style="font-size:12px; line-height:16px;
                        margin:0;">Your order confirmation is below.
                        Thank you again for your business.</p>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <h2 style="font-size:18px; font-weight:normal;
                        margin:0;">Your Order #100000006 <small>(placed
                          on 13 January 2014 19:57:33 GMT)</small></h2>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <table cellpadding="0" cellspacing="0" width="650"
                        border="0">
                        <thead> <tr>
                            <th style="font-size:13px; padding:5px 9px
                              6px 9px; line-height:1em;" width="325"
                              align="left" bgcolor="#EAEAEA">Billing
                              Information:</th>
                            <th width="10"><br>
                            </th>
                            <th style="font-size:13px; padding:5px 9px
                              6px 9px; line-height:1em;" width="325"
                              align="left" bgcolor="#EAEAEA">Payment
                              Method:</th>
                          </tr>
                        </thead> <tbody>
                          <tr>
                            <td style="font-size:12px; padding:7px 9px
                              9px 9px; border-left:1px solid #EAEAEA;
                              border-bottom:1px solid #EAEAEA;
                              border-right:1px solid #EAEAEA;"
                              valign="top"> Nick Maddren<br>
                              31 Millston Close<br>
                              Hartlepool, ts260px<br>
                              United Kingdom<br>
                              T: 0293736262 </td>
                            <td> </td>
                            <td style="font-size:12px; padding:7px 9px
                              9px 9px; border-left:1px solid #EAEAEA;
                              border-bottom:1px solid #EAEAEA;
                              border-right:1px solid #EAEAEA;"
                              valign="top">
                              <p><strong>PayPal Website Payments
                                  Standard</strong></p>
                              <table>
                                <tbody>
                                  <tr>
                                    <th><strong>Payer Email:</strong></th>
                                  </tr>
                                  <tr>
                                    <td>haxin@hotmail.co.uk</td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                      <br>
                      <table cellpadding="0" cellspacing="0" width="650"
                        border="0">
                        <thead> <tr>
                            <th style="font-size:13px; padding:5px 9px
                              6px 9px; line-height:1em;" width="325"
                              align="left" bgcolor="#EAEAEA">Shipping
                              Information:</th>
                            <th width="10"><br>
                            </th>
                            <th style="font-size:13px; padding:5px 9px
                              6px 9px; line-height:1em;" width="325"
                              align="left" bgcolor="#EAEAEA">Shipping
                              Method:</th>
                          </tr>
                        </thead> <tbody>
                          <tr>
                            <td style="font-size:12px; padding:7px 9px
                              9px 9px; border-left:1px solid #EAEAEA;
                              border-bottom:1px solid #EAEAEA;
                              border-right:1px solid #EAEAEA;"
                              valign="top"> Nick Maddren<br>
                              31 Millston Close<br>
                              Hartlepool, ts260px<br>
                              United Kingdom<br>
                              T: 0293736262   </td>
                            <td> </td>
                            <td style="font-size:12px; padding:7px 9px
                              9px 9px; border-left:1px solid #EAEAEA;
                              border-bottom:1px solid #EAEAEA;
                              border-right:1px solid #EAEAEA;"
                              valign="top"> Flat Rate - Fixed   </td>
                          </tr>
                        </tbody>
                      </table>
                      <br>
                      <table style="border:1px solid #EAEAEA;"
                        cellpadding="0" cellspacing="0" width="650"
                        border="0">
                        <thead> <tr>
                            <th style="font-size:13px; padding:3px 9px"
                              align="left" bgcolor="#EAEAEA">Item</th>
                            <th style="font-size:13px; padding:3px 9px"
                              align="left" bgcolor="#EAEAEA">Sku</th>
                            <th style="font-size:13px; padding:3px 9px"
                              align="center" bgcolor="#EAEAEA">Qty</th>
                            <th style="font-size:13px; padding:3px 9px"
                              align="right" bgcolor="#EAEAEA">Subtotal</th>
                          </tr>
                        </thead> <tbody bgcolor="#F6F6F6">
                          <tr>
                            <td style="font-size:11px; padding:3px 9px;
                              border-bottom:1px dotted #CCCCCC;"
                              valign="top" align="left"> <strong
                                style="font-size:11px;">ASUS Radeon R9
                                270X DirectCU II</strong> </td>
                            <td style="font-size:11px; padding:3px 9px;
                              border-bottom:1px dotted #CCCCCC;"
                              valign="top" align="left">109111</td>
                            <td style="font-size:11px; padding:3px 9px;
                              border-bottom:1px dotted #CCCCCC;"
                              valign="top" align="center">1</td>
                            <td style="font-size:11px; padding:3px 9px;
                              border-bottom:1px dotted #CCCCCC;"
                              valign="top" align="right"> <span
                                class="price">£158.00</span> </td>
                          </tr>
                        </tbody> <tbody>
                          <tr class="subtotal">
                            <td colspan="3" style="padding:3px 9px"
                              align="right"> Subtotal </td>
                            <td style="padding:3px 9px" align="right"> <span
                                class="price">£158.00</span> </td>
                          </tr>
                          <tr class="shipping">
                            <td colspan="3" style="padding:3px 9px"
                              align="right"> Shipping & Handling </td>
                            <td style="padding:3px 9px" align="right"> <span
                                class="price">£5.00</span> </td>
                          </tr>
                          <tr class="grand_total">
                            <td colspan="3" style="padding:3px 9px"
                              align="right"> <strong>Grand Total</strong>
                            </td>
                            <td style="padding:3px 9px" align="right"> <strong><span
                                  class="price">£163.00</span></strong>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                  <tr>
                    <td style="background:#EAEAEA; text-align:center;"
                      align="center" bgcolor="#EAEAEA">
                      <center>
                        <p style="font-size:12px; margin:0;">Thank you,
                          <strong>Madrok</strong></p>
                        <p>Unit 31 Millston Close, Hartlepool, TS260PX</p>
                        <p><a href="https://www.madrok.co.uk">www.Madrok.co.uk</a></p>
                        <p><a href="https://www.madrok.co.uk"> <br>
                          </a><a
                            href="https://www.facebook.com/madrokuk"><img
                              src="/images/fb.png" alt="Facebook"
                              width="48" border="0" height="48"></a><a>
                          </a><a href="https://twitter.com/MadrokUK"><img
                              src="/images/twitter.png" alt="Twitter"
                              width="48" border="0" height="48"></a><a>
                          </a><a
                            href="http://www.youtube.com/channel/UCFwPI9hOKTV1K1bjjmuq8fA"><img
                              src="/images/youtube.png" alt="Youtube"
                              width="48" border="0" height="48"></a></p>
                      </center>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>

I can see your problem!!

 

<img src="/images/fb.png" alt="Facebook" width="48" border="0" height="48"> magento is removing the domain name;

 

 

does this work:

<img src="{{store url=""}}/images/fb.png" alt="Facebook" width="48" border="0" height="48">

  • Author

I can see your problem!!

 

<img src="/images/fb.png" alt="Facebook" width="48" border="0" height="48"> magento is removing the domain name;

 

 

does this work:

<img src="{{store url=""}}/images/fb.png" alt="Facebook" width="48" border="0" height="48">

 

The domain is still in the code for each image though isn't it? I have just tried that with no luck unfortunately, thanks though.

you need use absolute path for email images as you can see on the email source code it displays " src="/images/fb.png" " this is a relative path!!!!

 

 

 

You need find out how to use absolute path in the email so i can see at the top of your email source:

"http://madrok.co.uk/skin/frontend/base/default/images/logo_email.gif " <---- does that image appear in the email client you are using

  • Author

Yes that does appear on the email, I think you might have just shed light on this for me. So the images need to be in that path for them to appear?

yep absolute path, or the path defined in the template program, i think it lets you upload and link to a directory from the WYSWYG editor have a look at how the other images are connected.

  • Author

Bad news I have put them into that folder and have the same result, however I just did a random test and sent one that wasn't working before in the images/ folder and it is working for one of the email templates but not the others I am so confused.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.