Specifications
Chapter 10 – Internet Service Commands
Multi-Tech Systems, Inc. AT Commands for EDGE (E1) Modems (S000474A) 182
10.14.10 Sending Email (URC Mode)
This example uses the service profile described in Section 10.14.9.
at^siso=9 Open the service, i.e. start to send the email.
OK
^SISW: 9, 1 The "^SISW" URC indicates that email data can be transferred.
at^sisw=9,87 The email to be sent has 87 bytes.
^SISW: 9,87,87 The write command response confirms that 87 bytes are
available for transmission.
Good Morning everyone, we are delighted to Write the message text.
announce our next meeting on Sunday morning.
OK
at^sisw=9,0,1 Set the <eodFlag> to mark the end of the email body.
^SISW: 9,0,0 The <eodFlag> is accepted by the service.
^SISW: 9,2 The "^SISW" URC confirms that all data is sent successfully.
at^sisi=9 Check the connection state of the service profile 9.
^SISI: 9,6,0,87,0,0 The command response confirms that the SMTP service is in
state "6" (Down) and that 87 bytes have been transferred.
at^sisc=9 Close the service.
OK
10.14.11 Sending Email (Polling Mode)
This example uses the service profile described in Section 10.14.9.
at^siso=9 Open the service, i.e. start to send the email.
OK
at^sisw=9,10 Try to write 10 bytes.
^SISW: 9, 10, 0 The service response indicates that 10 bytes can be written.
Hello Tom! Write 10 bytes.
OK
at^sisw=9,10 Try to write 10 bytes.
^SISW: 9, 0, 0 The service response indicates that the service refuses to
accept any data at the moment.
OK
at^sisw0=9,12 Try to write 12 bytes.
^SISW: 9, 12, 0 The service response indicates that 12 bytes can be written.
Bye Bye Tom! Write 12 bytes.
OK
at^sisw=9,0,1 Set the <eodFlag> to mark the end of the email body.
^SISW: 9,0,0 The <eodFlag> is accepted by the service.
OK
at^sisi=9 Check the connection state of service profile 9.
^SISI: 9,5,0,22,0,0 The command response confirms that the SMTP service is in
state "5" (Closing) and that 22 bytes have been written.
OK
at^sisi=9 Check the connection state of service profile 9.
^SISI: 9,6,0,22,0,0 The command response confirms that the SMTP service is in
state "6" (Down) and that 22 bytes have been written.
OK
at^sise=9 Check error status of service profile 9.
^SISE: 9,0 The command response confirms that no error occurred.
OK
at^sisc=9 Close the service.
OK