Coder Social home page Coder Social logo

mailchamp's Introduction

MailChamp

An Email Client to Send and Receive Emails from your Office 365 Account.
This application never stores user's credentials.

Mail champ solution consists of 3 Visual Studio Projects.

  1. Class Library
  2. Console Application
  3. WPF Application.

EmailHelper - Class Library

This is a reusable library built using .Net Framework 4.7.

  1. EmailSender - A Class to Send the email by setting Email Object
  2. EmailReader - A Class to read all the email as pet the Email Object Properties. Currently supports Inbox only.
  3. ExchangeServiceUtil - A Class which connects to EWS API with a given token.

MailChamp - Console Application

This is a sample console application to demonstrate the capability of the Class Library.

This application has been designed to enable login to Microsoft account using Oauth and using explicit credentials. The Program asks user to login to his Office 365 account (a popup window opens), User enters his credentials and only token is passed back to our application from Microsoft.
Same Token is used to fetch Mails from User's Inbox or to Send Emails via EWS.
If the user decides to cancel the Office login window, application falls back to explicit credentials.

Application now asks the user to enter email and password in the console. Credentials are never stored on the server. They are only used for transacting with EWS and is automatically destroyed once the program ends.

MailChampWin - A WPF Application

This is also a sample application to demonstrate the reusability of Class library.

This application uses WPF.Net to show Inbox data on a GUI. This application only supports login via Oauth and also has a feature to cache the retrieved token and fetch a new token silently when the old token expires.

Build and Run

This can be run only on Windows machine as this was built using .Net Framework 4.7. Machine must have this version of .Net installed.

For running via Implicit login

For Explicit Login
WPF currently doesn't support this feature yet! You have to enter your EmailID and Password in the console after cancelling the Microsoft Login Popup.

Open the MailChamp.sln solution file in Visual Studio 2019.
Build the application.
Nugets are restored automatically during the build.
You can set either the Console App or the WPF as a startup project.
Press F5 to Run the application

mailchamp's People

Contributors

shreeram-mc avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.