locked
display an image in an email body RRS feed

  • Question

  • User692055318 posted

    Morning,

    Is there a way to display an image in an email? The email is HTML but I can't get the image to display.

     message.Body =   @"<img src=images\companyLogo.png alt=companyLogo /><br>" +
                      "<h3><u> Summary </u> </h3> <br>" + whatOutage + whyOutage + wherePrefix + whereOutage + caveat +"<br>" +
                      "<h3><u> Customer Impact </u> </h3> <br>"  + impact +"<br>" + 
                      "<h3><u> Alternate Night: </u> </h3> <br>"+ altNight + "<p>" + signature  ; 

    Any thoughts would be great!

    Thanks
    Laura

    Friday, April 25, 2014 10:18 AM

Answers

  • User-2010311731 posted

    You need tr fully qualify the image URL... http://www.yourdomain.com/images/companyLogo.png

    Matt

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 25, 2014 10:23 AM

All replies

  • User-2010311731 posted

    You need tr fully qualify the image URL... http://www.yourdomain.com/images/companyLogo.png

    Matt

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 25, 2014 10:23 AM
  • User-1416423428 posted

    You need a fully qualified name... including domain name, where the companyLogo.png is hosted.  

    Friday, April 25, 2014 10:27 AM
  • User692055318 posted

    Perfect! Thanks!

    Friday, April 25, 2014 10:29 AM