本文介绍了如何使用infusionsoft api发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我制作了一个php页面,其中我使用了 infusionsoft
。当我运行该函数时返回1,但邮件不发送到邮件地址。我通过wamp服务器在infusionoft api发送邮件。这是我的代码:
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,'[email protected]','[email protected]', 'ccAddresses', 'bccAddresses', 'contentType', 'subject', 'htmlBody', 'txtBody');
print_r($check);
?>
推荐答案
要通过Infusionsoft发送电子邮件,您必须先将用户添加到他们的系统。那么你必须得到他的身份证件并连接到系统。
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,"[email protected]","~Contact.Email~", "","","Text","Test Subject","","This is the body");
print_r($check);
所有内容都在此链接上:
Everything is on this link: sendEmail
我认为Wamp将无法正常工作。因为我不确定,因为我使用XAMPP并且不起作用。
I think over Wamp will not work. For that I'm not sure because I use XAMPP and does not work.
这篇关于如何使用infusionsoft api发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!