How to Find Email Headers and Source Code

ActiveCampaign plans
Starter
Plus
Pro
Enterprise

Email headers and source code are important for a few reasons. They are key to helping our team troubleshoot delivery and content problems on your behalf. In addition they provide you with more detailed information related to the transmission process and display of your email.

What is source code?

Source code contains the HTML that controls the display of an email. Learn more about source code.

How to locate source code

The steps to locate the full source of your email differ widely for all email clients. Search online for instructions for your specific email client. Oftentimes the instructions are the same as for locating your email headers (outlined below).

What are email headers?

Email headers identify routing information of the message, including the sender, recipient, date and subject. You are also able to create custom email headers on our Enterprise plan. Learn more about custom email headers.

How to analyze an email header

First, in order to view the headers, you’ll need to download them from within your email client. Choose your email client from the list to get instructions, or search online for your particular email client’s instructions.

Now to break down a full email header.

Here’s an example:

Received: from VE1EUR02HT128.eop-EUR02.prod.protection.outlook.com
(2603:10b6:610:50::14) by CH2PR20MB2917.namprd20.prod.outlook.com with HTTPS
via CH2PR16CA0004.NAMPRD16.PROD.OUTLOOK.COM; Tue, 14 Jul 2020 15:10:36 +0000
Received: from VE1EUR02FT037.eop-EUR02.prod.protection.outlook.com
(2a01:111:e400:7e1e::4b) by
VE1EUR02HT128.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1e::409)
with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Tue, 14 Jul
2020 15:10:35 +0000
Received-SPF: Pass (protection.outlook.com: domain of s10.acems1.com
designates 192.92.97.209 as permitted sender)
receiver=protection.outlook.com; client-ip=192.92.97.209;
helo=s15.avl3.acemsrvc.com;
Received: from s15.avl3.acemsrvc.com (192.92.97.209) by
VE1EUR02FT037.mail.protection.outlook.com (10.152.12.195) with Microsoft SMTP
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
15.20.3174.21 via Frontend Transport; Tue, 14 Jul 2020 15:10:34 +0000
Received: by s15.avl3.acemsrvc.com id h1n5ek2lshkm for <hfray@outlook.com>; Tue, 14 Jul 2020 15:10:34 +0000 (envelope-from <bounce-511294-166-59-hfray=outlook.com@s10.acems1.com>)

The received is the most important part of the email header and is usually the most reliable. They form a list of all the servers/computers through which the message traveled in order to reach you.

The received lines are best read from bottom to top. That is, the top "Received:" line is your own system or mail server. The bottom "Received:" line is where the mail originated. Each mail system has its own style of "Received:" line. A "Received:" line typically identifies the machine that received the mail and the machine from which the mail was received.

Authentication-Results: spf=pass (sender IP is 192.92.97.209)
smtp.mailfrom=s10.acems1.com; outlook.com; dkim=pass (signature was
verified) header.d=lillysloft.co;outlook.com; dmarc=bestguesspass action=none
header.from=lillysloft.co;compauth=pass reason=109

Authentication results generally tell you the results of SPF, DKIM, and DMARC.

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=dk; d=lillysloft.co;

DKIM-signature. Learn more information about DKIM.

To: "Hanna Fray" <example@outlook.com>

This shows to whom the message was addressed but may not contain the recipient's address.

From: "Hanna" <example@lillysloft.co>

This displays who the message is from. However, this can be easily forged and can be the least reliable. That said, the domain displayed is where the reputation of the email is attached. Thus, it’s important to know how to protect your domain. One way to do this is by implementing a DMARC policy. Learn more about DMARC.

Subject: Welcome to Lilly's Loft

This is what the sender placed as a topic of the email content.

Date: Tue, 14 Jul 2020 10:10:34 -0500

This shows the date and time at which the email was received by your email client.

List-Unsubscribe: <mailto:unsubscribe-75f3b2793500b7dde7cf6e0508962a1f-166-46749a6af8b755c2ecfe3658788c0747@s10.acems1.com>,
<http://lillysloft.activehosted.com/box.php?nl=2&c=166&m=156&s=46749a6af8b755c2ecfe3658788c0747&funcml=unsub2&luha=1>

The unsubscribe information will provide the link to unsubscribe from the communication. It’s a unique header that some mailbox providers leverage to allow for easier unsubscribing. Learn more about how list unsubscribe helps email deliverability.

Message-ID: <20200714151034.599.579440210.swift@lillysloft.activehosted.com>

A unique string assigned by the mail system when the message is first created.

Return-Path: bounce-511294-166-59-example=outlook.com@s10.acems1.com

This is also known as Mail From, Envelope From, origin, bounce address, SPF domain, mailed-by, mail server domain, RFC 5321. This is the address where a bounce notification will go.

MIME-Version: 1.0

Multipurpose Internet Mail Extensions (MIME) is an Internet standard that extends the format of email. The presence of this header field indicates the message is MIME-formatted. The value is typically "1.0". MIME versions are how we package up a text and html version of an email into one package.

Content-Type: text/plain; charset=utf-8

Generally, this will tell you the format of the message. In 99.9% of the messages sent from ActiveCampaign, it will be multipart/alternative.

It’s important to note that the receiving and sending servers are the ones adding the headers. Your email header will likely contain even more data points than listed above, but these are the most common across all email clients. You can also utilize third-party tools to help you break down and analyze message headers to help identify where a delay may have occurred. One of our favorites is Messageheader or MxToolbox.

When inputting the email header above, Messageheader returned the following result:

Example_email_header_using_Messageheader.png

Example analysis of an email header

In the below, we are using Messageheader to break down the data into a more digestible format. As you can see from the first line item, there was a 10-minute delay in the delivery of this message FROM s3.csa1.acemsd2.com (ActiveCampaign server) to its first destination at Comcast. 

Example_email_header_in_Messageheader_that_shows_there_was_a_10_minute_delay.png

Learn more about why delays may occur.

Overall, email headers and source code are nothing to be intimidated about, and analyzing this data helps to resolve many of the delivery and display issues that impact email marketers.

Was this article helpful?
13 out of 35 found this helpful

Have more questions? Submit a request

Start free trial