Welcome to the MailService repository! This project is focused on building an email service similar to popular platforms like Gmail and Outlook. We utilize the powerful MailBee.Net library for email communication, enabling seamless interactions with various email services. To enhance security and connectivity, we employ OAuth 2.0, IMAP, and SMTP protocols.
The MailService repository is designed to provide users with an email service akin to popular platforms like Gmail and Outlook. It is built on the foundation of the MailBee.Net library, which offers robust capabilities for email communication. Our service enhances connectivity and security through the utilization of OAuth 2.0, IMAP, and SMTP protocols.
- User-Friendly Interface: The service offers an intuitive and easy-to-use interface for users to manage their emails effectively.
- OAuth 2.0 Integration: Ensuring secure authentication and authorization, OAuth 2.0 is implemented for seamless access to email accounts.
- IMAP Support: IMAP protocol is employed to allow users to synchronize their emails across various devices.
- SMTP Connectivity: SMTP protocol facilitates the sending of emails, ensuring reliable communication.
- Customization: Users can personalize their email settings, including signatures, themes, and filters.
- Attachment Handling: Attachments can be seamlessly added to emails and downloaded with ease.
- Search Functionality: Users can efficiently search for specific emails using keywords or filters.
- .NET Standard 2.0
- .NET Framework 4.7.2
- MailBee.Net Library
- OAuth 2.0 Configuration
- Clone the repository to your local machine.
- Install the required SDK and dependencies.
- Configure OAuth 2.0 credentials for secure authentication.
- Build and run the project.
-
Creating an API Project in Gmail:
- Go to the Google API Console.
- Create a new project.
- Enable the Gmail API.
- Create credentials and obtain the Client ID and Client Secret.
-
Setting Up Azure Multitenant with API Permissions:
- Sign in to the Azure portal.
- Create a new App Registration.
- Configure API permissions for Microsoft Graph API and Outlook.
Update the following settings in the App.config
file:
<appSettings>
<!-- ServerType: Google = 1, Outlook = 2, Office365 = 3 -->
<add key="ServerType" value="1" />
<!-- AuthenticationMode: OAuth = 1, UserCredentials = 2 -->
<add key="AuthenticationMode" value="2" />
<add key="ClientId" value="ENTER YOUR CLIENT ID" />
<add key="ClientSecret" value="ENTER YOUR CLIENT SECRET" />
<add key="UserEmail" value="ENTER USER EMAIL" />
<add key="Password" value="ENTER USER PASSWORD" />
</appSettings>
You can replace the placeholders (ENTER YOUR CLIENT ID
, ENTER YOUR CLIENT SECRET
, ENTER USER EMAIL
, and ENTER USER PASSWORD
) with the actual values in your App.config
file.
- Launch the application.
- Sign in or create a new account.
- Access your mailbox, compose emails, and manage your messages.
- Enjoy a seamless email experience with enhanced security and connectivity.
We welcome contributions to enhance the MailService repository. Feel free to fork the repository, make necessary changes, and submit a pull request.
This project is licensed under the MIT License. You are free to modify and distribute this project under the terms of the license.
Please refer to the License File for more information.
We are excited about creating an efficient and secure email service that rivals the best in the industry. If you have any questions or feedback, please do not hesitate to get in touch.
Thank you for being so interested in the MailService repository!