我创建了一个php页面,其中我使用了infusionsoft
。当我运行该函数时,它返回1,但没有邮件发送到邮件地址。我通过infusionsoft api中的wamp服务器发送邮件。这是我的代码:
<?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);
?>
答案 0 :(得分: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并且不起作用。