SMTP email format and source resolution

Source: Internet
Author: User
Tags base64 webmail server

e-mail format for the SMTP protocol

Following is the use of Foxmail to receive mail, the source of the message, including the body and two attachments (. Jpg. TXT):

----------------------------------------------------------------

The following sections add headers for mail servers

----------------------------------------------------------------

Received:from m15-17.126.com (unknown [220.181.15.17])

bymx10 (Coremail) with SMTP ID PMCOWECZWSFPLODRSU6NCW--. 779s2;

mon,06 May 2013 19:41:03 +0800 (CST)

dkim-signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; Domain key to identify message standards, to determine spam

S=s110527;h=received:date:from:to:subject:content-type:

Mime-version:message-id; BH=B57ZFI/+WCVQ61KM9GVKCECK1AX4OZVQDTNW//Not Base64 code

T4ls0x8=;b=xdeyidc7br1a1l7x3ygamimr5eldx2o4/db2iprvc0dz7y7anstu//Not Base64 code

6D9O4L9YVYSFWK8VIFB0EQYXV2WP28PILFLEGZBDDPKALMCALABVXDW+2HQL4OJD//Not Base64 code

sj7niadf1j5x2n87wktfka8zk4lphbyi1yfrnit+podg2nzf1cx2fdm=

Received: from zzzzyy91$126.com ([202.205.103.22]) by ajax-webmail-wmsvr17

(Coremail); Mon, 6 May 2013 19:41:01 +0800 (CST)

X-originating-ip: [202.205.103.22]//Initial IP address, same computer different mailbox send mail, this value is the same

---------------------------------------------------------------------------------------------------------

Data (The following content is defined by the mail client and entered after the data command)

Gray highlighted as main content

--------------------------------------------------------------------------------------------------------

Date: Mon, 6 May2013 19:41:01 +0800 (CST)

from: [base64code]<zzzzyy91@126.com>

to: [EmailAddress]

Subject: [Base64 Code]

x-priority: [integer]//Message priority

x-mailer: [coremail Webmail Server Version sp_ntes V3.5 Build//Agent originator

20130412 (21945.5326.5325) Copyright (c) 2002-2013 www.mailtech.cn 126com]

x-cm-ctrldata: [Base64 Code]//x mail server custom information segment, Unknown effect

content-type: multipart/mixed; Declare message content format

Boundary= "----=_part_354288_309861106.1367840461937"//Declaration of message content boundary

mime-version: 1.0//Declaration MIME version

Message-id: <>//x mail server customized Information section

X-cm-transid://x-mail server customized Information section

X-cm-senderinfo://x mail server customized Information section

X-coremail-antispam://x mail server customized Information section

---------------------------------------------------------

The following are the contents of the message

The yellow highlighted section is the content Description statement and the delimiter

The green Highlight section is the message content

The blue highlighted part is the attachment content

--------------------------------------------------------

------=_part_354288_309861106.1367840461937//mail content start

content-type:multipart/alternative; Message content Format

boundary= "----=_part_354290_1105600126.1367840461937"//Message body boundary

------=_part_354290_1105600126.1367840461937//message body boundary--body start

Content-type:text/plain; CHARSET=GBK//message body format and character set

Content-transfer-encoding:base64

[Base64]mailcontent (plain) [Base64]//message body (text format) encoding (base64)

------=_part_354290_1105600126.1367840461937//message body boundary--optional HTML format

content-type:text/html; CHARSET=GBK//message body format and character set

Content-transfer-encoding:base64

[Base64]mailcontent (HTML) [Base64]//message body (HTML format) encoding (base64)

------=_part_354290_1105600126.1367840461937--//message body boundary--body end

------=_part_354288_309861106.1367840461937//mail content boundary--starting with annex 1

Content-type:image/jpeg; Name= "20130324_224528_982.jpg"//attachment format and filename

Content-transfer-encoding:base64

Content-disposition:attachment;filename= "20130324_224528_982.jpg"

[Base64] (. jpg) image attachment[base64]//Attachment-Image content encoding (base64)

------=_part_354288_309861106.1367840461937//mail content boundary--starting with annex 2

Content-type:text/plain; Name= "window Data type.txt"//attachment format and filename

Content-transfer-encoding:base64

Content-disposition:attachment; Filename= "Window Datatype.txt"

[Base64] (TXT) plain attachment[base64]//Attachment-Text content encoding (base64)

------=_part_354288_309861106.1367840461937--//mail content boundary--end of attachment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.