guibranco / SmtpLw

:postbox: :envelope: SmtpLw - SMTP Locaweb - Cliente da API do SMTP dedicado da Locaweb

Home Page:https://guibranco.github.io/SmtpLw/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmtpLW - Locaweb SMTP API client

The Locaweb dedicated SMTP service API client.

GitHub license Time tracker

SmtpLw logo

CI/CD

Build status Last commit Tests Coverage Code Smells LoC
Build status GitHub last commit AppVeyor tests (branch) Coverage Code Smells Lines of Code

Code Quality

Codacy Badge Codacy Badge Codecov

Maintainability Test Coverage

Quality Gate Status Maintainability Rating

Technical Debt Duplicated Lines (%)

Reliability Rating Security Rating

Bugs Vulnerabilities

DeepSource


Installation

Github Releases

GitHub last release Github All Releases

Download the latest zip file from the Release page.

Nuget package manager

Package Version Downloads
SmtpLw SmtpLw NuGet Version SmtpLw NuGet Downloads

Features

Implements all features of Locaweb SMTP API available at SMTP Localweb API docs

  • Send message
  • Get message status

Usage

var client = new SmtpLwClient("my-auth-token");

var message = new MessageModel {
  Subject = "Some mail subject",
  Body = "Message body content!<br /> <b>HTML content</b> or plain text.",
  To = "destination@domain.com",
  From = "configured-from@mydomain.com",
  Headers = new Dictionary<string, string> { { "content-type","text/html"} }
};

var messageId = await client.SendMessageAsync(message, CancellationToken.None).ConfigureAwait(false);

Console.WriteLine("Message Id: {0}", messageId);

About

:postbox: :envelope: SmtpLw - SMTP Locaweb - Cliente da API do SMTP dedicado da Locaweb

https://guibranco.github.io/SmtpLw/

License:MIT License


Languages

Language:C# 97.9%Language:Shell 2.1%