How to use plugin SparkPost

With SparkPost plugin it is possible to use SparkPost email service for sending email from izzedo appbuild application.

1. Login to developer panel of your application.

2. Go to Plugins then Manage plugins.

3. Click on tab Find new plugin and then on SparkPost.

sparkpost-plugin

4. After plugin have been installed, go to Plugins then SparkPost.

sparkpost-plugin2

5. On option Server configuration you need to enter SparkPost API Key. This API you can find after you set up your account on SparkPost website.

6. Now you should be able to send emails from your application. You can try to send test email on option Send test email.

7. It is possible to send an email with Action type Server function.

sparkpost-plugin3

8. Or it is possible to send an email with Action type PHP Code.


$componentService = Services::GetComponentService();
$functionResult = $componentService->ExecuteServerFunction(
    "Functions.Plugins.SparkPost.SparkPost.SendEmailSparkPost", 
    array(
        "from"=>"string", 
        "subject"=>"string", 
        "heading1"=>"string", 
        "text1"=>"string", 
        "text2"=>"string", 
        "text3"=>"string", 
        "text4"=>"string", 
        "button1Name"=>"string", 
        "button1Link"=>"string", 
        "button2Name"=>"string", 
        "button2Link"=>"string", 
        "email"=>"string", 
        "templateName"=>"string", 
        "emailFrom"=>"string", 
        "fileId"=>"integer"
    )
);