Search code examples
phpemailinfusionsoft

how to send email through infusionsoft api?


i want to send an email through infusionsoft api but email not shown i want to try but no email sent,here is my code:

 <?php
 echo "Hello World! <br/>";
 include_once('iSDK/src/isdk.php');
 //require_once"iSDK/src/isdk.php";
 $myApp = new iSDK();
 // Test Connnection
 if ($myApp->cfgCon("connectionName"))
 {
  echo "Connected...";
 }
 else
 {
  echo "Not Connected...";
 }

  $myApp->sendEmail('conList','[email protected]','[email protected]', 'ccAddresses', 'bccAddresses', 'contentType', 'subject', 'htmlBody', 'txtBody');

 ?>

Solution

  • maybe config your smtp server on php.ini

    or you can install smtp server on your system