Multi-Tech Systems iCell GPRS (MTSMC-G2-IP #PUTMAIL Send Mail to Recipient with Interactive Mode

Models: iCell GPRS (MTSMC-G2-IP

1 119
Download 119 pages 55.83 Kb
Page 24
Image 24

Part 1 – AT Commands for All Universal IP Devices

Chapter 2 – SMTP AT Commands

#PUTMAIL – Send Mail to Recipient with Interactive Mode

Description: This command allows the attached host to send an email message containing body text passed to the TCP/IP stack over the serial port. Once an IP link is established, the attached host can send an email message at any time (except when the TCP/IP stack software is already in a process using TCP resources).

The header of this email is built using the REC1, CCREC1 and SUBJ1 parameters.

This command is similar to a “send email” operation issued by a standard messaging client on a PC.

Syntax: AT#PUTMAIL

IMPORTANT NOTE:

You must issue the <CR><LF> bytes (binary value: 0D 0A) as the first data bytes if a header is NOT being constructed in order to finish the internal headers correctly. This mechanism is in place to allow for the addition of custom headers such as MIME data.

Command

Possible Responses

AT#PUTMAIL

Ok_Info_WaitingForData

Note: You have to configure only

Notes: An SMTP session has been successfully opened

receiver address1, copy address1, and

with the remote SMTP server.

subject1 before or during the session,

Once the TCP/IP stack has displayed this message,

but content (body) of the email is typed

all the data received on the serial port is sent within

when the TCP/IP session is

the email body.

established. Content is not echoed.

The (CR)(LF)(.)(CR)(LF) sequence sent by the

 

attached host indicates the TCP/IP stack the end of

 

the email body.

<CR><LF>

 

Note: See Important Note above.

 

<content>

 

Note: Content is not written when

 

typing

 

<CR><LF> . <CR><LF>

OK

Note: Termination sequence

Note: The mail has been successfully sent.

<CR> = <Enter>, <LF> = <Ctrl Enter>

 

AT#PUTMAIL

#CME ERROR: 38027

 

Notes: The address of the SMTP server has not been

 

resolved by the secondary DNS server.

 

TCP/IP stack is not able to reach the primary or

 

secondary DNS servers or a wrong SMTP server

 

address has been entered.

AT#PUTMAIL

#CME ERROR: <value>

 

Notes: An error has occurred during the communication with

 

the remote SMTP server. It may also happen during

 

the data transfer (after the OK message).

 

This error can be due to one of the following

 

reasons:

 

- DNS servers are not able to resolve the SMTP

 

server address.

 

- SMTP server is temporarily out of service.

 

- Authentication (SMTPUN, SMTPPW) is not valid.

 

- An email address specified in REC1 or CCREC1

 

is not valid.

 

- n = inactivity period of 50 seconds on the serial

 

port.

 

See section ‘Response messages and error codes’

To view parameters, use #VMAIL and #VSMTP. They are also listed in #VMAILi (where i = 1, 2, or 3)

Universal IP AT Commands Reference Guide (Document S000457K)

24

Page 24
Image 24
Multi-Tech Systems iCell GPRS (MTSMC-G2-IP manual #PUTMAIL Send Mail to Recipient with Interactive Mode, Syntax AT#PUTMAIL

iCell GPRS (MTSMC-G2-IP specifications

Multi-Tech Systems iCell GPRS (MTSMC-G2-IP) is a versatile and powerful device designed for seamless connectivity in various applications, particularly in industrial and commercial environments. Known for its robust performance, the iCell GPRS module incorporates advanced technologies that enable effective communication over GPRS networks, making it an ideal solution for IoT applications, remote monitoring, and data collection processes.

One of the main features of the iCell GPRS is its dual SIM capability, which enhances network reliability and ensures continuous connectivity even in the event of network outages. By allowing the use of two SIM cards from different carriers, the device can switch between networks automatically, thereby minimizing downtime and maintaining critical communication channels.

The iCell GPRS supports various protocols including TCP/IP, UDP, and MQTT, which facilitates seamless integration with a range of applications. This flexibility in communication protocols allows developers to create customized solutions tailored to their specific needs, ensuring that the device can fit seamlessly into their existing infrastructure.

Another key characteristic of the MTSMC-G2-IP is its compact design and durability, making it suitable for deployment in a variety of environments. It features a wide operating temperature range that allows it to function efficiently in both extreme heat and cold, thereby catering to diverse applications across different industries. Additionally, the device is designed for easy installation and integration, which helps reduce deployment time and costs.

The iCell GPRS also includes built-in security features such as firewalls and secure data transmission protocols, protecting sensitive information from unauthorized access. This is particularly important for applications in sectors such as healthcare, finance, and transportation, where data integrity and security are paramount.

Furthermore, the device is equipped with various I/O ports that facilitate connectivity with external sensors, actuators, and other hardware. This feature makes it highly adaptable for monitoring and control systems, enabling users to gather real-time data and respond promptly to changing conditions.

In sum, the Multi-Tech Systems iCell GPRS (MTSMC-G2-IP) is a reliable and feature-rich solution designed for modern communication needs. Its dual SIM support, protocol versatility, robust design, and integrated security features make it an ideal choice for IoT and remote monitoring applications across numerous industries. Whether used in industrial automation, environmental monitoring, or smart cities, the iCell GPRS stands out as a dependable device that enhances connectivity and operational efficiency.