![]() |
RA Flexible Software Package Documentation
Release v6.3.0
|
|
This module provides the lwIP SMTP integration documentation.
The documentation for the library can be found at the following link: lwIPSMTP.
| Configuration | Options | Default | Description |
|---|---|---|---|
| Data Handler Callback on BODY |
| Disabled | Enable this option to invoke the user-defined callback for SMTP message BODY data. |
| SMTP Debug |
| LWIP_DBG_OFF | Set this to 1 to debug SMTP. |
| Maximum SMTP Server Name Length | Value must be a positive integer value | 256 | Specifies the maximum length of the SMTP server name. |
| Maximum SMTP Username Length | Value must be a positive integer value | 32 | Specifies the maximum length of the SMTP username. |
| Maximum Password Length | Value must be a positive integer value | 32 | Specifies the maximum length of the SMTP password. |
| Copy Authentication Data |
| Enabled | Enable to copy username and password into internal buffers instead of using pointers to user data. Disabling this if you know the authentication data will not change during the smtp session, which saves some heap space. |
| Check Email Data |
| Enabled | Enable to verify SMTP message fields for validity before transmission. Disabling this to save some code space if you know for sure that all data passed to this module conforms to the requirements in the SMTP RFC. WARNING: Use this with care! |
| AUTH PLAIN Support |
| Enabled | Enable to support SMTP AUTH PLAIN authentication. |
| AUTH LOGIN Support |
| Enabled | Enable to support SMTP AUTH LOGIN authentication. |
| Memory allocation | Name must be a valid C symbol | mem_malloc | Define the allocation function used for SMTP state machine memory. By default, uses lwIP mem_malloc. Override to FreeRTOS heap for RTOS-based systems. |
| Memory deallocation | Name must be a valid C symbol | mem_free | Define the free function used for SMTP state machine memory. By default, uses lwIP mem_free. Override to FreeRTOS heap for RTOS-based systems. |
The stack and heap sizes must be properly configured when using the TLS layer with MbedTLS. Depending on the specific configuration and use case, these values may need to be increased from their defaults. For more information on memory requirements, refer to the Memory Usage section in Mbed Crypto H/W Acceleration (rm_psa_crypto).
The lwIP SMTP module supports the following authentication methods:
smtp_set_auth(NULL, NULL) for servers that don't require authentication.Always use TLS when sending credentials:
This is a basic example of minimal use of the lwIP SMTP APIs in an application.
printf with e² studio, build errors may occur. Please refer to https://en-support.renesas.com/knowledgeBase/16979385 and follow Method 2, which is recommended for smooth integration and to avoid build errors.