SMTP
Introduction
This example demonstrates sending email using SMTP. The example
includes all the source for the SMTP sending, that can be used inside
an application. Before using the example, edit the configuration file (config.xml)
to put in test values for the mail server, mail recipient and message.
In order for this to work, the IP address of the mail server must
either be a fully qualified name and DHCP used to configure the IP
address of the board, or the IP address of the mail server must be a
numeric IP address (a.b.c.d). When DHCP is used, a DNS
server is passed by the DHCP server and this is used to resolve the
fully qualified name.
Building the example
Change directory to the tcpip example
cd %LF_HOME%\examples\smtp
Rebuild the application
lfmake clean all
Running the example
To run the example on the board
lfdownload smtp.bin
The terminal should display Mail status = 0
Check the mail server that was configured to verify that the mail was
received.
Features
This example demonstrates the following SDK features.