SendPulse.Net 1.0.3

dotnet add package SendPulse.Net --version 1.0.3
                    
NuGet\Install-Package SendPulse.Net -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SendPulse.Net" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SendPulse.Net" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="SendPulse.Net" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SendPulse.Net --version 1.0.3
                    
#r "nuget: SendPulse.Net, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=SendPulse.Net&version=1.0.3
                    
Install SendPulse.Net as a Cake Addin
#tool nuget:?package=SendPulse.Net&version=1.0.3
                    
Install SendPulse.Net as a Cake Tool

SendPulse.Net

SendPulse Logo

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

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 120 2/17/2025
1.0.2 117 2/11/2025