Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
smtp_opts.h
00001 #ifndef LWIP_HDR_APPS_SMTP_OPTS_H 00002 #define LWIP_HDR_APPS_SMTP_OPTS_H 00003 00004 #include "lwip/opt.h" 00005 00006 #ifdef __cplusplus 00007 extern "C" { 00008 #endif 00009 00010 /** 00011 * @defgroup smtp_opts Options 00012 * @ingroup smtp 00013 * 00014 * @{ 00015 */ 00016 00017 /** Set this to 1 to enable data handler callback on BODY */ 00018 #ifndef SMTP_BODYDH 00019 #define SMTP_BODYDH 0 00020 #endif 00021 00022 /** SMTP_DEBUG: Enable debugging for SNTP. */ 00023 #ifndef SMTP_DEBUG 00024 #define SMTP_DEBUG LWIP_DBG_OFF 00025 #endif 00026 00027 /** Maximum length reserved for server name including terminating 0 byte */ 00028 #ifndef SMTP_MAX_SERVERNAME_LEN 00029 #define SMTP_MAX_SERVERNAME_LEN 256 00030 #endif 00031 00032 /** Maximum length reserved for username */ 00033 #ifndef SMTP_MAX_USERNAME_LEN 00034 #define SMTP_MAX_USERNAME_LEN 32 00035 #endif 00036 00037 /** Maximum length reserved for password */ 00038 #ifndef SMTP_MAX_PASS_LEN 00039 #define SMTP_MAX_PASS_LEN 32 00040 #endif 00041 00042 /** Set this to 0 if you know the authentication data will not change 00043 * during the smtp session, which saves some heap space. */ 00044 #ifndef SMTP_COPY_AUTHDATA 00045 #define SMTP_COPY_AUTHDATA 1 00046 #endif 00047 00048 /** Set this to 0 to save some code space if you know for sure that all data 00049 * passed to this module conforms to the requirements in the SMTP RFC. 00050 * WARNING: use this with care! 00051 */ 00052 #ifndef SMTP_CHECK_DATA 00053 #define SMTP_CHECK_DATA 1 00054 #endif 00055 00056 /** Set this to 1 to enable AUTH PLAIN support */ 00057 #ifndef SMTP_SUPPORT_AUTH_PLAIN 00058 #define SMTP_SUPPORT_AUTH_PLAIN 1 00059 #endif 00060 00061 /** Set this to 1 to enable AUTH LOGIN support */ 00062 #ifndef SMTP_SUPPORT_AUTH_LOGIN 00063 #define SMTP_SUPPORT_AUTH_LOGIN 1 00064 #endif 00065 00066 /* Memory allocation/deallocation can be overridden... */ 00067 #ifndef SMTP_STATE_MALLOC 00068 #define SMTP_STATE_MALLOC(size) mem_malloc(size) 00069 #define SMTP_STATE_FREE(ptr) mem_free(ptr) 00070 #endif 00071 00072 /** 00073 * @} 00074 */ 00075 00076 #ifdef __cplusplus 00077 } 00078 #endif 00079 00080 #endif /* SMTP_OPTS_H */ 00081
Generated on Tue Jul 12 2022 13:54:50 by
