PHP code example of lianhua / easy-mailjet
1. Go to this page and download the library: Download lianhua/easy-mailjet 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/ */
lianhua / easy-mailjet example snippets
$mj = new EasyMailjet("Your key", "Your secret");
$mj->sendMail($email);
$mj->sendMail($email, $res);
$mj->sendMail($email, $res, "campaign_id", "message_id");
$mj->setSandbox(true);
$mj->setDeduplicate(true);