nuttx-apps/examples/sendmail/Kconfig
Gregory Nutt 72a934c6c2 Add configuration settings for apps/examples/sendmail.
The sendmail example hasn't been used in years.  I am not sure it was ever debugged.  It is so old that it still expects hand editted .config files.  As a result, all of the configuration settings were missing from the Kconfig file.

This commit adds the missing apps/examples/sendmail configuration settings so that the example at least builds.  I cannot test it because I have no smtp server that I am willing to spam.

This configuration also adds missing configuration dependencies and runs the C files in apps/examples/sendmail and apps/netutils/smtp through nxstyle.

This commit resolves an issue reported by surya prakash rased in the Google group:  https://groups.google.com/forum/#!topic/nuttx/idr-M164Y24
2020-01-24 19:07:54 -03:00

59 lines
1.3 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config EXAMPLES_SENDMAIL
tristate "Sendmail example"
default n
depends on NET_IPv4
depends on NET_TCP
select NETUTILS_SMTP
---help---
Enable the sendmail example
if EXAMPLES_SENDMAIL
config EXAMPLES_SENDMAIL_NOMAC
bool "Use Canned MAC Address"
default n
---help---
If the hardware has no MAC address of its own, define this =y to
provide a bogus address for testing.
config EXAMPLES_SENDMAIL_IPADDR
hex "Target IP address"
default 0x0a000002
---help---
The target IP address. Default 10.0.0.2 (0x0a000002)
config EXAMPLES_SENDMAIL_DRIPADDR
hex "Default Router IP address (Gateway)"
default 0x0a000001
---help---
The default router address. Default 10.0.0.1 (0x0a000001)
config EXAMPLES_SENDMAIL_NETMASK
hex "Network Mask"
default 0xffffff00
---help---
The network mask. Default: 255.255.255.0 (0xffffff00)
config EXAMPLES_SENDMAIL_RECIPIENT
string "Recipient email"
default "Jane Doe <jane.doe@janedoemail.com>"
config EXAMPLES_SENDMAIL_SENDER
string "Sender email"
default "John Doe <john.doe@johndoemail.com>"
config EXAMPLES_SENDMAIL_SUBJECT
string "Subject"
default "Test"
config EXAMPLES_SENDMAIL_BODY
string "Mail Body"
default "This is a test"
endif