Tuto WINDEV 25

Part 4: Full application with data 241 We are going to use the SMTP protocol. Indeed, this mode is commonly used all over the world. See the online help for more details about the other methods. Answer To follow this lesson, you must have followed the lessons of this part until "Printing a list of customers", page 215. A full corrected application project is also available: in WINDEV’s home page (Ctrl + <), click "Tutorial" and select "Full application (Answer)". Example See the "WD Mail" example (full example supplied with WINDEV) for more details. This example is accessible from the WINDEV home page (Ctrl + <). A window for sending emails This window will contain all controls allowing the user to type the different email elements. A "Send" Button control will group all processes used to send the email. Creating the window ▶ Create a new window: 1. Open the "WD Full Application" project if necessary. 2. Create a new blank window. • Click among the quick access buttons. • The window for creating a new element is displayed: click "Window" then "Window". • The window creation wizard starts. • In the "Based on a template" tab pane, select "Use: WINTPL_Template" and validate the wizard. 3.  The window for saving an element is displayed. The title of this window being "Sending an email", its name is automatically proposed: "WIN_Sending_an_email". Validate the proposed information. Creating the controls used to configure the sending In a first time, we are going to create all controls for configuring the SMTP server used to send messages. Four edit controls are required: • SMTP server, • Port of SMTP server, • User name, • User password.

RkJQdWJsaXNoZXIy NDQ0OA==