Note:
– As a standard SMTP type email, the body should contain alpha-numeric characters only.
– Each email body can contain up to 1024 characters. If data entered goes over 1024 characters, only the first
1024 characters will be saved.
– On saving email body to a same <id> old body will be over written.
8.6 Sending an email
AT+EMSEND
To send an email with pre-saved email subject (using AT+EMSUBJ command, section 8.4); pre-saved email body
(content) (using AT+EMBODY command, section 8.5), plus an additional email body to pre-saved email address(es)
(using AT+EMADDR command, section 8.3). Maximum three group of recipient: "TO", "CC" and "BCC"; can be sent
for a single email.
cellular connection (+IPCONNECT=1,1 see section 2.1.2) must to be made and SMTP parameters have to be entered
properly before sending email otherwise will return +CME ERROR: 3. When finishing a result code will be returned.
Result code "0" means email transferred success, otherwise there is error. See following for more explanation.
Syntax: AT+EMSEND= <to_id>,<cc_id>,<bcc_id>,<subj_id>,<body_id>,<add_body>
Response: +EMSEND: <result>
Defined Values:
<to_id> identification number (id) of the email address(es) that as a normal email recipient. Valid value is 0 to
50. (’0’ or missing parameter means no recipient for this email)
<cc_id> identification number (id) of the email address(es) that as a "carbon copy" (cc) email recipient. Valid
value is 0 to 50. (’0’ or missing parameter means no cc recipient for this email)
<cc_id> identification number (id) of the email address(es) that as a "blind carbon copy" (cc) email recipient. Valid
value is 0 to 50. (’0’ or missing parameter means no recipient for this email).
<subj_id> Identification number (id) of the email subject. Valid value is 0 to 10. (’0’ or missing parameter means no
subject for this email).
<body_id> identification number (id) of the email body (content). Valid value is 0 to 3. (’0’ or missing parameter
means no saved body will be used for this email).
<add_body> additional email body (content) to be sent. Maximum 128 characters can be sent. <add_body> will be
added just after body indicated by <body_id> (if any).
<id> identification number (id) of the email body. Valid value is 1 to 3.
<result> result code of the email sending process:
0 email sending successful.
-1 reserved (Contact Maestro Wireless).
-2 reserved (Contact Maestro Wireless).
-3 SMTP setup fail (Check +IPSMTP parameters).
-4 cannot resolve SMTP server/ server not found (Check +IPSMTP parameters).
-5 connect SMTP server timeout (Retry later).
-99 other error (Contact Maestro Wireless).
4xx–5xx SMTP protocol reply code (Check SMTP document (RFC 821) for explanation).
Confidential, the whole document is the sole property of Maestro Wireless Solutions ltd.
support@maestro-wireless.com
49