SMTPLW - SMTP Locaweb API client

Logo

The Locaweb dedicated SMTP service API client.

View the Project on GitHub guibranco/SmtpLw

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


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);