Using SMTP to send e-mail
Simple Mail Transfer Protocol (SMTP) is a standard to send e-mails. In this recipe, we will use SMTP to send e-mail through a Gmail account.
We will build our e-mailing application based on a state machine architecture.
- Build the state machine as shown in the following screenshot. It starts in the User Input state, and waits for the user to enter all required information and click on Send.
- If the Exit button is clicked on, the state machine will go to the shutdown state.
- The next state is "From/To". It creates ...