HS SMTP LITE is a software library in C (supplied with full source code) which implements the client side of Simple Mail Transfer Protocol (SMTP) over TCP socket layer according to RFC 821. Support for transfer of basic message header and text is provided
To send a text email message to any address on the internet, the user application calls a single function HsSmtpSendMail, specifying mail server name or IP address, sender address, recipient address, message text buffer and length, subject, cc and an event callback function to use for reporting of operation result and server errors.
HS SMTP library then resolves the server name, connects to it and transmits the message according to SMTP RFC 821 protocol. HS SMTP Library incorporates the necessary state machine, transparency procedures, and server response processing required to comply to a simple and robust SMTP client implementation.
Modular design makes it easy to port HS SMTP protocol module to any environment. HS SMTP internally at a lower layer interfaces to HS Sock library which provides TCP transport services. User application need not worry about Winsock - HS SMTP does all transmission, reception and event handling over socket layer.
Features
-SMTP Client Operation
-Server name resolution
-Supports up to 5 contexts
-Message Header Transfer
-Message Text Transfer
-Asynchonous Operation
Customization: Hillstone Software provides additional services for customization, porting and integration of the library code to better suit the needs of your products
API summary
-HsSmtpInit
-HsSmtpDestroy
-HsSmtpTick
-HsSmptSendMail
-HsSmptAbortMail