SendPulse.Net 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package SendPulse.Net --version 1.0.2
                    
NuGet\Install-Package SendPulse.Net -Version 1.0.2
                    
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.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SendPulse.Net" Version="1.0.2" />
                    
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.2
                    
#r "nuget: SendPulse.Net, 1.0.2"
                    
#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.
#:package SendPulse.Net@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SendPulse.Net&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=SendPulse.Net&version=1.0.2
                    
Install as a Cake Tool

SendPulse.Net

SendPulse Logo

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.

Features

  • Authenticate and interact with the SendPulse API
  • Manage email campaigns, mailing lists, and templates
  • Send transactional emails and SMS

Installation

Install the package via NuGet:

Install-Package SendPulse.Net

Or using .NET CLI:

dotnet add package SendPulse.Net

Getting Started

1. Configure API Credentials

To use SendPulse.Net, you need your SendPulse API credentials. Obtain them from SendPulse API settings.

2. 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";
});

3. Example: Send an Email

//Inject Interface
// ISendPulseClient sendPulseClient;

var fromEmail = new EmailAddress() { Email = "me@email.com", Name = "My Email Name" };

    var toEmail = new List<EmailAddress>()
    {
        new EmailAddress()
        {
            Email = "me@gmail.com",
            Name ="John Doe"
        }
    };
 var response = await sendPulseClient.SendApiEmailAsync(fromEmail, toEmail, "Test Email", "<p>Testing Sendpulse Nuget package</p>");

Console.WriteLine(response.Result ? "Email sent!" : "Failed to send email.");

Available APIs in this version

  • Email API - Send transactional emails.

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 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 402 2/17/2025
1.0.2 204 2/11/2025