Coder Social home page Coder Social logo

experimentfields's Introduction

Short Introduction: 

A simple email client application that uses email service providers' HTTP service to send email. Email services are configured on the backend in the order of email service performance like reliability, response time, scalability, cost, etc. If one service failed, it will automatically fail over t next one hence decrease the service provider outage.

Usage:

TrustableEmailClient.exe
Enter email payload you want to send. Q to exit:
{      to: [email protected], to_name: Ms. Fake, from: [email protected], from_name: Me,subject: A Message from Service provider, body: <h1>Your Bill</h1><p>$1
0</p> }


Features:
1. Using widely acceppted HTTP service instead of SMTP service which may be blocked by firewall.
2. This service service provider list is configureable. You can simply change the config file to add/remove/edit email services.
3. Simple code. Easy to deploy and maintainance.

Deployment:
Just copy RestSharp.dll, RestSharp.xml (C# package), TrustableEmailClient.exe, TrustableEmailClient.exe.config to your local machine and you are good to go.

Troubleshooting:
There are detailed log file in the same place (configureable) with naming format EmailingRecordYYYYMMddHHmmssff.log to view execution history like when email was sent, what response code, response content, etc. 

Discussion:
1. Input ideally a Web UI. That needs a Web site to host the Emailing service which is out of the scope of this project.
2. We can also choose to log to database. Log to file is simple but difficult to query each field like status, return code, error messages. 
3. Using C# since I am most familiar with it and Visual Studio is one of the most powerfull IDE.
4. Didn't use mandrill since it doesn't have API for C#.

experimentfields's People

Contributors

chenliangsun avatar

Watchers

 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.