SendPulse.Net
1.0.3
dotnet add package SendPulse.Net --version 1.0.3
NuGet\Install-Package SendPulse.Net -Version 1.0.3
<PackageReference Include="SendPulse.Net" Version="1.0.3" />
<PackageVersion Include="SendPulse.Net" Version="1.0.3" />
<PackageReference Include="SendPulse.Net" />
paket add SendPulse.Net --version 1.0.3
#r "nuget: SendPulse.Net, 1.0.3"
#addin nuget:?package=SendPulse.Net&version=1.0.3
#tool nuget:?package=SendPulse.Net&version=1.0.3
SendPulse.Net
Overview
SendPulse.Net is a .NET SDK that simplifies integration with the SendPulse API, allowing developers to manage email campaigns, SMTP, push notifications, chatbots, and more in their .NET applications.
Table of Contents
Installation
Prerequisites
- .NET Core 6.0+
- A SendPulse account, sign up for free to send up to 15,000 emails. Check out their pricing.
Install Package
Install the package via NuGet:
Install-Package SendPulse.Net
Or using .NET CLI:
dotnet add package SendPulse.Net
Quick Start
1. Configure Service
using SendPulseNetSDK.src.SendPulse;
using SendPulseNetSDK.src.SendPulse.Models;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSendPulseNet(config =>
{
config.BaseUrl = "https://api.sendpulse.com";
config.ClientId = "991e5dcb9163ca4d5d**********";
config.ClientSecret = "client_secret_here";
});
2. Send basic email
var fromEmail = new EmailAddress() { Email = "test@test.com", Name = "From Name" };
var toEmail = new List<EmailAddress>()
{
new EmailAddress()
{
Email = "john@gmail.com",
Name ="John Doe"
}
};
await sendpulse.SendApiEmailAsync(fromEmail, toEmail, "Test Email", "<p>Testing SendPulse Nuget package</p>");
2. Sending email with CC and BCC
var fromEmail = new EmailAddress() { Email = "test@test.com", Name = "From Name" };
var ccList = new List<EmailAddress>{ new EmailAddress("cc@example.com", "CC Person") };
var bccList = new List<EmailAddress> { new EmailAddress("bcc@example.com", "BCC Person") };
var toEmail = new List<EmailAddress>()
{
new EmailAddress()
{
Email = "john@gmail.com",
Name ="John Doe"
}
};
await sendpulse.SendApiEmailAsync(fromEmail, toEmail, "Test Email", "<p>Testing SendPulse Nuget package</p>",ccList,bccList);
3. Sending email with attachments
var fromEmail = new EmailAddress() { Email = "test@test.com", Name = "From Name" }; };
var toEmail = new List<EmailAddress>()
{
new EmailAddress()
{
Email = "john@gmail.com",
Name ="John Doe"
}
};
var attachments = new Dictionary<string, byte[]>;
{
{ "invoice.pdf", File.ReadAllBytes("path/to/invoice.pdf") }
};
await sendpulse.SendApiEmailAsync(fromEmail, toEmail, "Test Email", "<p>Testing SendPulse Nuget package</p>",null,null,attachments);
Available APIs in this version
- Email API - Send transactional emails.
- Email API - Get List of Sent emails
- Email API - Get single sent email by Id
Documentation
Detailed documentation can be found here.
Contributing
Contributions are welcome! Feel free to submit pull requests or report issues.
License
This project is licensed under the MIT License.
Support
For issues or feature requests, open an issue in the repository or contact SendPulse Support.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Configuration (>= 9.0.1)
- Microsoft.Extensions.Http (>= 9.0.1)
- System.Net.Http (>= 4.3.4)
-
net7.0
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Configuration (>= 9.0.1)
- Microsoft.Extensions.Http (>= 9.0.1)
- System.Net.Http (>= 4.3.4)
-
net8.0
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Configuration (>= 9.0.1)
- Microsoft.Extensions.Http (>= 9.0.1)
- System.Net.Http (>= 4.3.4)
-
net9.0
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Configuration (>= 9.0.1)
- Microsoft.Extensions.Http (>= 9.0.1)
- System.Net.Http (>= 4.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.