Adding image to Order conf e-mail template

I am trying to add an image to the standard order conf e-mail template.  I cannot get the image to display in the e-mail.  It gets rendered as a missing or broken link in the e-mail.  Is there a trick I am missing to get the image to render properly? In desperation I copied the image file into every single folder within the API structure on the webserver but still did not work.  Any thoughts?

 

  • Hi Todd,

    What I usually do for our templates is have the source url of the image on our main website.  Unless your api location is available to the public it won't be found.

    Jon



    [edited by: Jon Ballinger at 11:01 AM (GMT -6) on 16 Feb 2012]
  • Yep - try Jon's solution - the image needs to be publicly available and use a full URL because the file is sent to the user: a relative address won't be resolved.

    Good luck!

  • Ideally you need to have the image hosted on an external web server and put the link to the image on the webserver.  This means that you can access the image from anywhere where you have web access.  This is good for things like outlook and gmail etc.  Here is part of our header for our email confirmation. 

     

       <%--Table for holding header information of the order--%>

       <table width="580" border="0" cellpadding="10" style="font-family: Arial, Helvetica, sans-serif; font-size: 16px;">

       <tr>

    <td>

                <img src="http://www.wmc.org.uk/config/Emails/AccountConfirmation/hdr-logo.gif" alt="Canolfan Mileniwm Cymru \ Wales Millennium Centre" name="hdrlogo" width="185" height="155" border="0" align="left" id="hdrlogo2" />

          </td>

          <td bgcolor="#FFFF00" width="50%">

                <p style="font-size: 120%;">

                      <strong>Diolch</strong>

                </p>

                <p style="font-size: 80%;">

                      thank you for placing your order with Wales Millennium Centre.

                      <br /><br />

                      Diolch am archebu tocynnau gyda Chanolfan Mileniwm Cymru..

                </p>

           </td>

       </tr>

       </table>

     

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Todd Tiffany
    Sent: 16 February 2012 16:56
    To: Nick Insell
    Subject: [Tessitura Technical Forum] Adding image to Order conf e-mail template

     

    I am trying to add an image to the standard order conf e-mail template.  I cannot get the image to display in the e-mail.  It gets rendered as a missing or broken link in the e-mail.  Is there a trick I am missing to get the image to render properly? In desperation I copied the image file into every single folder within the API structure on the webserver but still did not work.  Any thoughts?

     




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

  • Thanks for the suggestions.  I was able to get it working by referencing the image in a folder on one of our websites.  I had forgotten that I disabled outside access to the API after moving our web hosting in-house.  The image wasn't showing up because it couldn't hit the API from outside.