# Source code displaying in gmail app android

**URL:** <https://community.hubspot.com/t/source-code-displaying-in-gmail-app-android/10343>\
**Category:** CMS Development\
**Created:** [September 22, 2018, 6:57pm UTC](https://community.hubspot.com/t/source-code-displaying-in-gmail-app-android/10343 "2018-09-22T18:57:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![NR1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nr1/32/102437_2.png) [@NR1](https://community.hubspot.com/u/NR1)\
**Post date:** [September 22, 2018, 6:57pm UTC](https://community.hubspot.com/t/source-code-displaying-in-gmail-app-android/10343/1 "2018-09-22T18:57:09Z")

</div>

Hi, in one of our emails, the bottom of the email’s source code is displaying on gmail app on android and looks very bad. Does anyone have experience with this and know what I can put in the code to prevent this? Help pls! Image below for example

 ![362b00be-c53d-4586-969e-8e8566bfba8f.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/f/bf5344b14cd475524c635eb49f7e13101886c1bb.jpeg)

---

<div class="post-metadata">

**Author:** ![tjoyce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tjoyce/32/88832_2.png) [@tjoyce](https://community.hubspot.com/u/tjoyce)\
**Post date:** [September 22, 2018, 9:38pm UTC](https://community.hubspot.com/t/source-code-displaying-in-gmail-app-android/10343/2 "2018-09-22T21:38:11Z")

</div>

@NR1 - One major culprit to this is that you aren’t allowed to have a large source code size in your gmail email. If your email source code is \>100kb (I think, not sure of the exact number), there are times when gmail tries to clip the message and gets it wrong. You can post some source code and we can investigate.

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [September 24, 2018, 2:11am UTC](https://community.hubspot.com/t/source-code-displaying-in-gmail-app-android/10343/3 "2018-09-24T02:11:48Z")

</div>

@NR1, Your missing the end of that img tag. If that isn’t happening in the template then @tjoyce called it. Try optimizing your images. Chances are you could get your images down to 2-10kb without losing quality. [http://jpeg-optimizer.com/](http://jpeg-optimizer.com/)

Need help? [Hire Us Here](https://www.upwork.com/o/companies/_~0124e15ff34efb3871/)

---

<div class="post-metadata">

**Author:** ![NR1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nr1/32/102437_2.png) [@NR1](https://community.hubspot.com/u/NR1)\
**Post date:** [September 24, 2018, 5:28pm UTC](https://community.hubspot.com/t/source-code-displaying-in-gmail-app-android/10343/4 "2018-09-24T17:28:26Z")

</div>

Thanks! @tjoyceCan you advise how to make it shorter? Here’s a bit @Jsum what do you mean missing the end of the image tag? thank you

\<h2\>\<span style=“font-family: arial, helvetica, sans-serif; color: #006895;”\>Job Hunting\</span\>\</h2\>  
\<p\>\<span style=“font-family: arial, helvetica, sans-serif; color: #333333; font-size: 14px;”\>We currently have 500+ open positions at our global portfolio companies. Here are a few of the most exciting:\</span\>\</p\>  
\<ul\>  
\<li\>\<span style=“font-family: arial, helvetica, sans-serif; font-size: 14px;”\>\<a href=“[https://wave.bamboohr.co.uk/jobs/view.php?id=144](https://wave.bamboohr.co.uk/jobs/view.php?id=144)” style=“color: #00a9e0; text-decoration: none;” rel=" noopener"\>Facilities Manager for Wave (Canada)\ \</a\>\</span\>\</li\>  
\<li\>\<span style=“font-family: arial, helvetica, sans-serif; font-size: 14px;”\>\<a href=“[https://agentologyca.bamboohr.com/jobs/view.php?id=15](https://agentologyca.bamboohr.com/jobs/view.php?id=15)” style=“color: #00a9e0; text-decoration: none;” rel=" noopener"\>Sales Operations Manager for Agentology (USA)\ \</a\>\</span\>\<span style=“font-family: arial, helvetica, sans-serif; font-size: 14px;”\>\<a href=“[https://innoviz.tech/join-us/people--operations/45.A0D/supply-chain-administrator/all](https://innoviz.tech/join-us/people--operations/45.A0D/supply-chain-administrator/all)” style=“color: #00a9e0; text-decoration: none;”\>\</a\>\</span\>\<span style=“font-family: arial, helvetica, sans-serif; font-size: 14px;”\>\<a href=“[https://jobs.lever.co/thebouqs.com/2c97a978-fb97-4a65-80e2-f18fe72f849b](https://jobs.lever.co/thebouqs.com/2c97a978-fb97-4a65-80e2-f18fe72f849b)” style=“color: #00a9e0; text-decoration: none;”\>\</a\>\</span\>\</li\>  
\<li\>\<span style=“font-family: arial, helvetica, sans-serif; font-size: 14px;”\>\<a href=“[https://jobs.lever.co/bizzabo.com/ee88c076-108c-465b-acba-ef7e06c77e92](https://jobs.lever.co/bizzabo.com/ee88c076-108c-465b-acba-ef7e06c77e92)” style=“color: #00a9e0; text-decoration: none;” rel=" noopener"\>R&D Support Lead for Bizzabo (Israel)\ \</a\>\</span\>\</li\>  
\</ul\>  
\<p\>\<span style=“font-family: arial, helvetica, sans-serif; font-size: 14px;”\>To search, filter, and apply head to OurTalent\ \<a href=“[http://ourtalent.ourcrowd.com](http://ourtalent.ourcrowd.com)” style=“color: #00a9e0; text-decoration: none;” rel=" noopener"\>here\</a\>.\</span\>\</p\>

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [September 24, 2018, 5:36pm UTC](https://community.hubspot.com/t/source-code-displaying-in-gmail-app-android/10343/5 "2018-09-24T17:36:52Z")

</div>

@NR1 I mean the code in your shared image. It’s an incomplete image tag. An incomplete tag shows as plain text like yours is doing, however youd see the broken tag everywhere the email is looked at if the Img tag was actually broken. If it is only happening in one place and the image shows everywhere else, then it’s the app that is cutting off the last part of your Img tag which is causing it to break.

Need help? [Hire Us Here](https://www.upwork.com/o/companies/_~0124e15ff34efb3871/)

---

<div class="post-metadata">

**Author:** ![NR1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nr1/32/102437_2.png) [@NR1](https://community.hubspot.com/u/NR1)\
**Post date:** [September 24, 2018, 5:38pm UTC](https://community.hubspot.com/t/source-code-displaying-in-gmail-app-android/10343/6 "2018-09-24T17:38:32Z")

</div>

hmm do you know what i can do to fix @Jsum

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [September 24, 2018, 5:47pm UTC](https://community.hubspot.com/t/source-code-displaying-in-gmail-app-android/10343/7 "2018-09-24T17:47:47Z")

</div>

@NR1 I actually hate email template development to the point that I turn down any offers related to this dark art.

Following @tjoyce’s suggestion, use [http://jpeg-optimizer.com](http://jpeg-optimizer.com) to resize Nd reduce image quality. Your email is probably 600px wide with a padding so you images should he no wider that that minus the padding. Also quality does not need to be high at 72dpi. Your not increasing the quality beyond that, just the size. You email image sizes should in the single digit kilobytes. Try that first.

Need help? [Hire Us Here](https://www.upwork.com/o/companies/_~0124e15ff34efb3871/)

---

<div class="post-metadata">

**Author:** ![NR1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nr1/32/102437_2.png) [@NR1](https://community.hubspot.com/u/NR1)\
**Post date:** [September 25, 2018, 5:13am UTC](https://community.hubspot.com/t/source-code-displaying-in-gmail-app-android/10343/8 "2018-09-25T05:13:33Z")

</div>

ok thank you!
