In order to send emails from within your web app, the SMTP web.config settings must be configured. For example, the automatic password reminders sent by ASP.NET membership require an SMTP configuration.
Start the web app generator, and click on the project name.
Starting in release 18.104.22.168, the SMTP settings can be configured. Select “Settings”, choose “Features”, and switch to “SMTP Configuration” section to define your SMTP settings.
Select Settings, and click on Web Server Configuration option.
In the Web.Config modification instructions text box, insert your configuration. Model it after the sample displayed below:
<smtp deliveryMethod="Network" from="email@example.com">
Press Finish, and regenerate the web app. The SMTP settings have been added to the web.config file and emails will now work as intended.
Learn more about configuring email settings.