On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTIP-32 Programming Manual
Introduction
TCP/IP Networking
Programming with RTIP-32
Demo Programs
PPP
DHCP Client
DHCP Server
FTP Client
FTP Server
TFTP Client
TFTP Server
Telnet Client
Telnet Server
Web Server
SNMP Agent
POP3 Client
SMTP Client
SNTP Client
SMB Server
SMB Client
SMB3 Server
SMB3 Client
WLAN Driver
RTIP-32 Reference Manual
RTPEG-32
RTUSB-32
|
SMTP Client
The SMTP Client can send emails, possibly with attachments, to an SMTP server. SMTP Authentication is performed if a user name and password is supplied. The SMTP Client is an optional add-on for RTIP-32 and must be purchased in addition to RTIP-32 to be available. Applications requiring the SMTP Client must include header file Smtpapi.h and link library Mail.lib. The SMTP Client API is documented in the RTIP-32 Reference Manual.
The SMTP client connects (optionally encrypted) to the SMTP server and sends a greeting of the form "HELO domain", where domain is the domain name of the client. The server response consists of a result code followed by any optional text and ending with a "\r\n" character pair. The client then uses the "MAIL FROM:" command to specify the author of the message, and the "RCPT TO:" command to specify the recipients. If the message has multiple recipients, this command may be used more than once for a single message. The client then sends the DATA command, which informs the server that what follows is the mail message. The client then sends the message, terminated by "\r\n.\r\n." The QUIT command is used to close the connection.
POP3 Client
SNTP Client
|