Introduction
This example demonstrates the use of the WINC3400 with the SAMD21 Xplained Pro board to send email using SMTP server.
It uses the following hardware:
- the SAMD21 Xplained Pro.
- the WINC3400 on EXT1.
Main Files
- main.c : Initialize the WINC3400 and send email.
Usage
- Configure below code in the main.h for AP information to be connected.
- Build the program and download it into the board.
- On the computer, open and configure a terminal application as the follows.
* Baud Rate : 115200
* Data : 8bit
* Parity bit : none
* Stop bit : 1bit
* Flow control : none
*
- Start the application.
- In the terminal window, the following text should appear:
* -- WINC3400
send email example --
* -- Compiled: xxx xx xxxx xx:xx:xx --
* Host IP is 173.194.72.108
* Host Name is smtp.gmail.com
* Recipient email address is recipient@gmail.com
*
main: Email was successfully sent.
*
- Warning
* For using the GMAIL, the root certificate must be installed.
* Download the root certificate using the root_certificate_downloader. (Refer to WINC3400 Software User Guide.)
*
Compilation Information
This software was written for the GNU GCC compiler using Atmel Studio 6.2 Other compilers are not guaranteed to work.
Contact Information
For further information, visit Microchip.