https://github.com/guibranco/smtplw
📮 ✉️ SmtpLw - SMTP Locaweb - Cliente da API do SMTP dedicado da Locaweb
https://github.com/guibranco/smtplw
api-client api-wrapper dotnetcore dotnetframework dotnetstandard hacktoberfest locaweb lw smpt-lw smtp smtp-client smtp-locaweb smtplw
Last synced: 5 months ago
JSON representation
📮 ✉️ SmtpLw - SMTP Locaweb - Cliente da API do SMTP dedicado da Locaweb
- Host: GitHub
- URL: https://github.com/guibranco/smtplw
- Owner: guibranco
- License: mit
- Created: 2020-07-05T23:54:20.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-05-08T12:35:55.000Z (about 1 year ago)
- Last Synced: 2025-05-08T13:37:44.062Z (about 1 year ago)
- Topics: api-client, api-wrapper, dotnetcore, dotnetframework, dotnetstandard, hacktoberfest, locaweb, lw, smpt-lw, smtp, smtp-client, smtp-locaweb, smtplw
- Language: C#
- Homepage: http://guilherme.stracini.com.br/SmtpLw/
- Size: 273 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SmtpLW - Locaweb SMTP API client
The [Locaweb dedicated SMTP service](https://www.locaweb.com.br/smtp-locaweb/) API client.
[](https://github.com/guibranco/SmtpLw)
[](https://wakatime.com/badge/github/guibranco/SmtpLw)

## CI/CD
| Build status | Last commit | Tests | Coverage | Code Smells | LoC |
|--------------|-------------|-------|----------|-------------|-----|
| [](https://ci.appveyor.com/project/guibranco/smtplw) | [](https://github.com/guibranco/smtplw) | [](https://ci.appveyor.com/project/guibranco/smtplw) | [](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw) | [](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw) | [](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw) |
## Code Quality
[](https://www.codacy.com/gh/guibranco/SmtpLw/dashboard?utm_source=github.com&utm_medium=referral&utm_content=guibranco/SmtpLw&utm_campaign=Badge_Grade)
[](https://www.codacy.com/gh/guibranco/SmtpLw/dashboard?utm_source=github.com&utm_medium=referral&utm_content=guibranco/SmtpLw&utm_campaign=Badge_Grade)
[](https://codecov.io/gh/guibranco/smtplw)
[](https://codeclimate.com/github/guibranco/SmtpLw/maintainability)
[](https://codeclimate.com/github/guibranco/SmtpLw/test_coverage)
[](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw)
[](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw)
[](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw)
[](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw)
[](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw)
[](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw)
[](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw)
[](https://sonarcloud.io/dashboard?id=guibranco_SmtpLw)
[](https://app.deepsource.com/gh/guibranco/SmtpLw/?ref=repository-badge)
***
## Installation
### Github Releases
[](https://github.com/guibranco/SmtpLw) [](https://github.com/guibranco/SmtpLw)
Download the latest zip file from the [Release](https://github.com/GuiBranco/SmtpLw/releases) page.
### Nuget package manager
| Package | Version | Downloads |
|------------------|:-------:|:-------:|
| **SmtpLw** | [](https://www.nuget.org/packages/SmtpLw/) | [](https://www.nuget.org/packages/SmtpLw/) |
***
## Features
Implements all features of Locaweb SMTP API available at [SMTP Localweb API docs](http://developer.locaweb.com.br/documentacoes/smtp/api-como-utilizar/)
* Send message
* Get message status
***
## Usage
```cs
var client = new SmtpLwClient("my-auth-token");
var message = new MessageModel {
Subject = "Some mail subject",
Body = "Message body content!
HTML content or plain text.",
To = "destination@domain.com",
From = "configured-from@mydomain.com",
Headers = new Dictionary { { "content-type","text/html"} }
};
var messageId = await client.SendMessageAsync(message, CancellationToken.None).ConfigureAwait(false);
Console.WriteLine("Message Id: {0}", messageId);
```
***