The Locaweb dedicated SMTP service API client.
The Locaweb dedicated SMTP service API client.
Build status | Last commit | Tests | Coverage | Code Smells | LoC |
---|---|---|---|---|---|
Download the latest zip file from the Release page.
Package | Version | Downloads |
---|---|---|
SmtpLw |
Implements all features of Locaweb SMTP API available at SMTP Localweb API docs
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);