how to send email using infusionsoft api

╄→尐↘猪︶ㄣ 提交于 2019-12-11 02:34:58

问题


I make a php page in which I used infusionsoft. When I run the function it returns 1 but no mail is sent to the mail address. I'm sending mail through wamp server in infusionsoft api. 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...";
 }

 $check=$myApp->sendEmail($clist,'marif252@gmail.com','arif.liaqat@yahoo.com', 'ccAddresses', 'bccAddresses', 'contentType', 'subject', 'htmlBody', 'txtBody');
 print_r($check);
 ?>

回答1:


To be able to send email through Infusionsoft you must first to add users to their system. Then You must get his ID and to connect to the system.

echo "Hello World!";
 include_once('iSDK/src/isdk.php');
 $myApp = new iSDK;
 if ($myApp->cfgCon("connectionName"))
 {
  echo "Connected...";
 }
 else
 {
  echo "Not Connected...";
 }
$clist=array(123,456,789)
$check=$myApp->sendEmail($clist,"Test@test.com","~Contact.Email~", "","","Text","Test Subject","","This is the body");
 print_r($check);

Everything is on this link: sendEmail

I think over Wamp will not work. For that I'm not sure because I use XAMPP and does not work.



来源:https://stackoverflow.com/questions/21733070/how-to-send-email-using-infusionsoft-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!