beautypg.com

10 sending email (polling mode) – Siemens Brodersen MC55 AT User Manual

Page 261

background image

MC55_ATC_V04.00

Page 261 of 475

3/17/06

Confidential / Released

10.11.10

Sending Email (Polling Mode)

This example uses the service profile described in Section

10.11.8

.

^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
announce our next meeting on Sunday morning.

Write the message text.

OK

at^sisw=9,0,1

Set the

to mark the end of the email

body.

^SISW: 9,0,0

The

is accepted by the service.

^SISW: 9,2

The "

^SISW

" URC confirms that all data is sent suc-

cessfully.

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

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.

Hallo 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

to mark the end of the email

body.

^SISW: 9,0,0

The

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