Skip to content

This is Email Service like Gmail, Outlook App. We are using MailBee.Net for Email Communication and for Connectivity we are using 0Auth2.0, Imap, SMTP

License

Notifications You must be signed in to change notification settings

Perfigent-Org/MailService

Repository files navigation

MailService Repository - Email Services like Gmail, Outlook App

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.

Table of Contents

Introduction

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.

Features

  • 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.

Setup

Prerequisites

  • .NET Standard 2.0
  • .NET Framework 4.7.2
  • MailBee.Net Library
  • OAuth 2.0 Configuration

Installation

  1. Clone the repository to your local machine.
  2. Install the required SDK and dependencies.
  3. Configure OAuth 2.0 credentials for secure authentication.
  4. Build and run the project.

API Setup

  1. 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.
  2. 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.

Configuration

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.

Usage

  1. Launch the application.
  2. Sign in or create a new account.
  3. Access your mailbox, compose emails, and manage your messages.
  4. Enjoy a seamless email experience with enhanced security and connectivity.

Contributing

We welcome contributions to enhance the MailService repository. Feel free to fork the repository, make necessary changes, and submit a pull request.

License

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!

About

This is Email Service like Gmail, Outlook App. We are using MailBee.Net for Email Communication and for Connectivity we are using 0Auth2.0, Imap, SMTP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages