Skip to content

Latest commit

 

History

History
executable file
·
122 lines (58 loc) · 4.68 KB

Mono-installation-SDK.md

File metadata and controls

executable file
·
122 lines (58 loc) · 4.68 KB

Steps to install C# SDK with Mono-Develop IDE using Git (without Nuget/Package Manager)

If you are using Mono for development and want to integrated with Pepipost directly by using Git, then below steps will help you in integrating this Pepipost C# code library in our IDE.

Prerequisites

How to Build

  1. Download Pepipost SDK

    Unzip the SDK on any Location of your choice (we will unzipped in directory named testSDK)

    OR git clone https://github.com/pepipost/pepipost-sdk-csharp.git

    mygit

  2. Start Mono-Develop IDE

    Click open

    monoide

  3. Select Pepipost.sln from unzipped folder

    Open the Solution once you have selected the sln file

    mono

  4. Once you have opened the solution the few files will appear with respective SDK:

    Add new project to the main directory as shown below

    monoaddpro

  5. Choose template for new project will be prompted

    Select App -> Console Application -> next

    appconsole

  6. Configure new project

    Give a desired name to your project (testConsole recommended)

    makeconsole

  7. Resolving dependencies

    a. Adding reference

    dep1

    Select Edit Reference

    dep2

    Select Pepipost -> OK

    dep3

    b. Adding packages

    dep4

    search NewtonSoft.json -> Add packages

    dep5

  8. Once all the packages are installed successfully

    Just copy and paste the simpleUsage.md in your program.cs file present in your project.

    Build the project as shown below OR by just hit F8 to build

    monol8

  9. Update the api_key and FromEmail parameters:

  * apikey: This will be available under: Login to your Pepipost account -> Settings -> Integration
  * FromEmail: If your fromemail address is e.g. info@mydomain.com, then the Sending Domain mydomain need to be verified and active under your Pepipost account. You can manage the Sending Domain under: Login to Pepipost -> Settings -> Sending Domains
  1. Change apiKey and FromEmail in your script:
  ```string apiKey = "XXXXX-your-api-key-XXXX" ``` (near by line no 25 if your have copy the simpleUsage.md)
       
  ```body_personalizations_0.Recipient = "your recipient emailid here"``` (near by line no 31)
 
  ```body.From.FromEmail = "info@ your-verified-domain"``` (near by line no 37)
  1. Build the project to finally send your first test email Run the project.

    Run the project by hiting Ctrl + F5

    If your apikey and sending domain is proper, then response message will be success.

    monol9

    Hope, you have received your first test email 😃

    If there is some problem related with config, then you will receive error message as shown below:

    mono10