View email headers in Gmail

To view the email headers, open it in Gmail, click the three-dot button, and select "Show original":

After that, a tab will open where you can view the summary information and all headers, download the letter in EML format or copy it to the clipboard: