2

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);
 ?>
4

1 回答 1

0

为了能够通过 Infusionsoft 发送电子邮件,您必须首先将用户添加到他们的系统。然后你必须得到他的 ID 并连接到系统。

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);

一切都在这个链接上:sendEmail

我认为 Wamp 将无法正常工作。为此我不确定,因为我使用 XAMPP 并且不起作用。

于 2014-02-17T20:07:06.237 回答