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. 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="firstname.lastname@example.org">
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.