This document provides a step-by-step guide to set up the project, including database configuration and mail service setup.
- Open your project in your preferred IDE (e.g., Visual Studio).
- Navigate to the Package Manager Console.
- Run the following command to initialize the database:
Update-Database
- The database path is specified in the
appsettings.json
file under the propertyDefaultConnection
. Ensure the connection string is configured correctly.
-
Navigate to the backend of the project:
Backend -> Services -> EmailSender.cs
-
Open the
EmailSender.cs
file. -
Locate the
Sender
method. -
Update the method with your email credentials (e.g., Gmail credentials). Ensure the following information is provided:
- Email address
- Password or App-Specific Password
Example configuration:
smtpClient.Credentials = new NetworkCredential("[email protected]", "your-password");
Note: For Gmail accounts, ensure you have enabled less secure app access or configured an app password.