I'd like to see how a certain email was put together.
Is there a "View Source" for emails sent to Gmail?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityI'd like to see how a certain email was put together.
Is there a "View Source" for emails sent to Gmail?
As Jasper pointed out, click the dropdown menu next to the reply button, and select Show original.
Once you get your Show original
window up, your address bar will contain something like this: https://mail.google.com/mail/u/0/?ui=2&ik=1234567890&view=om&th=1234abcd1234abcd
Just change the bit that says view=om
to view=lg
.
Push Enter, and bingo: it’s no longer plain text. Now save it as .html
or as .pdf
.
Source: http://blog.brush.co.nz/2012/09/save-a-gmail-message-to-hard-disk/
https://your-website.com/image.png
they'll be https://ci4.googleusercontent.com/proxy/j78=s0-d-e1-ft#https://your-website.com/image.png
. If your website is intranet-only (i.e. inaccessible from outside your company network / without VPN), you won't see the images since Gmail image proxy servers are unable to reach it. When using desktop email client, images will be shown.
To add to the accepted answer:
If after pressing "View Original" you don't see the HTML code and only see big chunks of random text (Base64) then what you want to do is select the text under the
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: base64
label and copy paste it into a Base64 Decoder (You can find a range of tools that do this online via Google). The results are your HTML source.
Select Print email and it will open the link in a new window or tab, where you can right click see all the source code.
Don't know the web client of Gmail, but some way to go would be to configure different email client (e.g. Thunderbird with imap a few clicks...) where you can easily view the source of the message.
I had to actually do show original, and then do view source to see the source HTML.