![]() |
Network Component
Version 7.2
MDK Middleware for IPv4 and IPv6 Networking
|
Functions to connect to an SMTP server. More...
Functions | |
netStatus | netSMTPc_Connect (const NET_ADDR *addr) |
Start SMTP client to send an email. [thread-safe]. | |
Functions to connect to an SMTP server.
The SMTP client session starts with a connect request using netSMTPc_Connect. The SMTP client then opens a SMTP connection to the specified server. The user application then needs to wait for the callback function netSMTPc_Notify to return the state of the operation. Based on the callback event, further processing can be started.
Start SMTP client to send an email. [thread-safe].
[in] | addr | structure containing IP address and port of SMTP server. |
The function netSMTPc_Connect starts the SMTP client. The SMTP client then connects to an SMTP server specified with the argument addr which points to a buffer containing the IP address and port of the SMTP server. If the specified port is 0, the client uses a standard SMTP server port 25 to connect to the server.
Code Example