User's Manual

Table Of Contents
MIME Encapsulated E-Mail Messages
AT+i Programmer‘s Manual Version 8.32 23-1
23 MIME Encapsulated E-Mail Messages
23.1 iChip-Generated Binary Message Formats
Binary e-mail messages are sent via iChip using one or more AT+iEMB commands. The
message format is limited to an optional body of text and a single attachment.
The following fields are added by iChip to the main message header:
X-Mailer: iChip <software version>
Message-ID: <Unique #>@iChip
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=CONE-iChip-<software version>”
The message‘s preface contains the following text:
This MIME message was coded by iChip.
If the host application includes a text body for the message, it also contains the following
lines in its header:
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-iCoverpage: Email
When no textual body contents are included this section is omitted.
The binary attachment section follows, beginning with a MIME attachment header
containing the following fields:
Content-Type: <User defined media type>/<User defined media subtype>;
name=<User defined attachment filename>
Content-Transfer-Encoding: base64
where,
<media type> := ―text‖ / ―image‖ / ―audio‖ / ―video‖ / ―application‖
<media subtype> := <A publicly-defined extension token.>
<filename> := <User-defined name (including extension)> or
<unique filename>
<media type> defaults to ―application‖ when otherwise not defined.
<media subtype> defaults to ―octet-stream‖ when otherwise not defined.
Following the header, a base 64-encoded data stream includes the entire binary data
transferred to iChip from the host.
23.2 MIME-Related AT+i Commands and Parameters
Binary images are transferred to iChip for MIME message encapsulation via one or more
AT+iEMB commands. An AT+iEMB command sequence must be terminated by the
AT+iE* command, indicating the end of the binary e-mail message.
When several consecutive AT+iEMB commands are used, the host must issue the
commands with an inter-command delay, which does not violate the SMTP server‘s
timeout constraints. Otherwise, the SMTP server will timeout and abort the session.
Average SMTP servers allow for delays in the range of 30 to 120 seconds. Additional