Network Component
Version 6.6
MDK-Professional Middleware for IP Networking
|
Simple Mail Transfer Protocol (SMTP) is a widely used protocol for the delivery of e-mails between TCP/IP systems and users. All steps in the e-mail system use SMTP with the exception of the final retrieval step by an e-mail recipient.
An Embedded SMTP Client can send e-mails to various recipients. A typical use is to send automated e-mail notifications to different e-mail addresses.
E-mail content can be a static predefined e-mail message or a real dynamic message. An example of a real dynamic email is one that contains the measurement results from a log file or an email with current measurement values.
SMTP Client interface functions are in the user interface module SMTP_Client_UIF.c. To add the module to your project, simply right-click on the Source group, select Add Net Item to Group, then click on User Code Template and scroll in the template files list until you find the SMTP Client template. Customize this module by changing the sender's address, the recipient's address, the subject, and the body of the email message.
The following functions are available:
The following function is included in the Network Component library rl_net.h:
Code Example SMTP_Client_UIF.c
The SMTP client configuration file Net_Config_SMTP_Client.h contains only the setting Response Timeout in seconds which is an inactivity timeout. When the SMTP Client does not receive a response from SMTP Server within this timeout, it aborts the operation.