Include Files
Wherever you want to use µC/SMTPc, you should include the following header:
Include file | Description |
---|---|
Source/smtp-c.h | Contains SMTPc API definitions |
Module initialization
µC/SMTPc does not require to be initialized. Although, if you want to use the DNS features, µC/DNSc shall be properly initialized.
Create an email
Send an email
Function name | Description |
---|---|
SMTPc_SendMail() | Process all the steps to send an email. |
Shell reference
Prerequisite
µC/TCP-IP command module.
Include Files
Wherever you want to use initialize the command in µC/Shell, you should include the following header:
Include file | Description |
---|---|
Cmd/dns-c_cmd.h | Contains DNSc Command definitions |
API
Function name | Description |
---|---|
DNScCmd_Init() | Function to load DNS client command into shell. |
Command reference
Command | Description | Argument | Usage example |
---|---|---|---|
dns_get_host | Resolve a host name. Will printout all address retrieved for an host. | Host name. | dns_get_host micrium.com |
dns_server_set | Configure the default server. | server ip address. | dns_server_set 8.8.8.8 |
dns_cache_clr | Clear all host of the DNS cache | none. | dns_cache_clr |
dns_help | Print help | none | dns_help |