PHP code example of joshuafredrickson / gravityforms-addon-json-emails

1. Go to this page and download the library: Download joshuafredrickson/gravityforms-addon-json-emails library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

joshuafredrickson / gravityforms-addon-json-emails example snippets


To: [email protected]
Message-ID: <[email protected]>
X-Mailer: PHPMailer 6.9.1 (https://github.com/PHPMailer/PHPMailer)
Return-Path: <[email protected]>
Received: from localhost by mailhog.example (MailHog)
          id [email protected]; Sat, 18 May 2024 19:06:00 -0500
Subject: Form 14: Entry 13
Date: Sun, 19 May 2024 00:06:00 +0000
From: Test Sender <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8

{"id":"13","status":"active","form_id":"14","ip":"127.0.0.1","source_url":"https:\/\/example.test\/wp\/?gf_page=preview&id=14","currency":"USD","post_id":null,"date_created":"2024-05-19 00:06:00","date_updated":"2024-05-19 00:06:00","is_starred":0,"is_read":0,"user_agent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/124.0.0.0 Safari\/537.36","payment_status":null,"payment_date":null,"payment_amount":null,"payment_method":"","transaction_id":null,"is_fulfilled":null,"created_by":"22","transaction_type":null}