SMTPState Variable

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
SMTPState Variable
C
enum {
  SMTP_HOME = 0,
  SMTP_HELO,
  SMTP_HELO_ACK,
  SMTP_AUTH_LOGIN,
  SMTP_AUTH_LOGIN_ACK,
  SMTP_AUTH_USERNAME,
  SMTP_AUTH_USERNAME_ACK,
  SMTP_AUTH_PASSWORD,
  SMTP_AUTH_PASSWORD_ACK,
  SMTP_MAILFROM,
  SMTP_MAILFROM_ACK,
  SMTP_RCPTTO_INIT,
  SMTP_RCPTTO,
  SMTP_RCPTTO_ACK,
  SMTP_RCPTTO_ISDONE,
  SMTP_RCPTTOCC_INIT,
  SMTP_RCPTTOCC,
  SMTP_RCPTTOCC_ACK,
  SMTP_RCPTTOCC_ISDONE,
  SMTP_RCPTTOBCC_INIT,
  SMTP_RCPTTOBCC,
  SMTP_RCPTTOBCC_ACK,
  SMTP_RCPTTOBCC_ISDONE,
  SMTP_DATA,
  SMTP_DATA_ACK,
  SMTP_DATA_HEADER,
  SMTP_DATA_BODY_INIT,
  SMTP_DATA_BODY,
  SMTP_DATA_BODY_ACK,
  SMTP_QUIT_INIT,
  SMTP_QUIT
} SMTPState;
Description

Message state machine for the SMTP Client

Members
Members 
Description 
SMTP_HOME = 0 
Idle start state for SMTP client (application is preparing message) 
SMTP_HELO 
HELO is being sent to server 
SMTP_HELO_ACK 
Received an ACK for the HELO 
SMTP_AUTH_LOGIN 
Requesting to log in 
SMTP_AUTH_LOGIN_ACK 
Log in request accepted 
SMTP_AUTH_USERNAME 
Sending user name 
SMTP_AUTH_USERNAME_ACK 
User name accepted 
SMTP_AUTH_PASSWORD 
Sending password 
SMTP_AUTH_PASSWORD_ACK 
Password was accepted 
SMTP_MAILFROM 
Sending inital MAIL FROM command 
SMTP_MAILFROM_ACK 
MAIL FROM was accepted 
SMTP_RCPTTO_INIT 
Preparing to send RCPT TO 
SMTP_RCPTTO 
Sending RCPT TO command 
SMTP_RCPTTO_ACK 
RCPT TO was accepted 
SMTP_RCPTTO_ISDONE 
Done sending RCPT TO commands 
SMTP_RCPTTOCC_INIT 
Preparing to send RCPT TO CC commands 
SMTP_RCPTTOCC 
Sending RCPT TO CC commands 
SMTP_RCPTTOCC_ACK 
RCPT TO CC was accepted 
SMTP_RCPTTOCC_ISDONE 
Done sending RCPT TO CC 
SMTP_RCPTTOBCC_INIT 
Preparing to send RCPT TO BCC commands 
SMTP_RCPTTOBCC 
Sending RCPT TO BCC commands 
SMTP_RCPTTOBCC_ACK 
RCPT TO BCC was accepted 
SMTP_RCPTTOBCC_ISDONE 
Done sending RCPT TO BCC 
SMTP_DATA 
Sending DATA command 
SMTP_DATA_ACK 
DATA command accpted 
SMTP_DATA_HEADER 
Sending message headers 
SMTP_DATA_BODY_INIT 
Preparing for message body 
SMTP_DATA_BODY 
Sending message body 
SMTP_DATA_BODY_ACK 
Message body accepted 
SMTP_QUIT_INIT 
Sending QUIT command 
SMTP_QUIT 
QUIT accepted, connection closing 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.