Giter Site home page Giter Site logo

cbse-mailer's Introduction

cbse-mailer

A simple mailer created for component-based development assignment. Created using .NET

Components

  1. Mailer.dll - Provides method to send simple emails under namespace MailUtils
  2. MailScheduler.dll - Provides method to create a mailing list based on given data under namespace MailScheduler

Mailer.dll Interfaces:

Constructor

public Mailer(string host, int port, string user, string pass)

- host : string = The address of the SMTP server
- port : int = The port used by the SMTP server
- user : string = The email address used to access the SMTP server
- pass : string = The password for the email used to access the SMTP server

Methods

public void SendMail(string from, string to, string subject, string body)

- from : string = The sender's email address
- to : string = The recipient's email address
- subject : string = The subject of the email
- body : string = The body of the email

MailScheduler.dll Interfaces:

Methods

public static List<List<string>> CreateMailList(string[][] data)

- data: string[][] = The data to be used to construct the mailing list

RETURNS:
- A list of list of string containing the list of mails to be sent

Data Format

The scheduler accepts data with the following formatting:

[
    ["target email address", "subject", "raw date string"],
    [...],
    [...],
] : string[][]

The raw date string used are in the following format:

"yyyy, mm, dd" : string

The mailing list returned from the CreateMailingList() method is in the following format:

[
    ["target email address", "raw metadata 1", ..., ...],
    [...],
    [...],
] : List<List<string>>

* Subsequent elements after the target's email address is always additional mail metadata

The raw metadata string used are in the following format:

"subject;yyyy, mm, dd" : string

Running the Sample Program:

USAGE:
$ Test.exe <email address> <email password>
$ Test.exe <smtp address> <smtp port> <email address> <email password>

Using the Components:

  1. Download the components from the release page.
  2. Add a reference to the downloaded .dll files using the dotnet CLI.
  3. Use it in your project.

cbse-mailer's People

Contributors

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