从自定义字段向电子邮件广告系列发送HTML标记

时间:2014-08-13 10:53:42

标签: php html email infusionsoft

我有一个电子商务网站,已整合到InfusionSoft

目前正在发生的是......

客户在我的网站上完成订单并购买,比方说2个产品。

订单完成后,添加订单已接收标签并将客户信息添加到InfusionSoft,订单明细HTML标记(通过代码在我的网站上生成)将添加到自定义字段{{1} }

已经有一个广告系列正在向客户发送简单的感谢电子邮件。

我想要的是我可以发送订单明细(存储在~_myCustomField~中)以及感谢您的电子邮件

我尝试了这一点,我已将自定义字段添加到广告系列的电子邮件中,就像~_myCustomField~一样,但是它只发送了一个HTML,而不是生成的一个!< / EM>

~Contact._myCustomField~包含例如

_myCustomField

1 个答案:

答案 0 :(得分:1)

您可以在此时发送感谢电子邮件,而不是将HTML保存到自定义字段中。

您可以使用电子邮件服务发送电子邮件: https://developer.infusionsoft.com/docs/read/Email_Service

示例:

$title = "template API test";
$category = "API Category";
$fromAddress = "from@infusionsoft.com";
$toAddress = "~Contact.Email~";
$ccAddress = "";
$bccAddresses = "";
$subject = "My Fancy Subject Line";
$textBody = "This is the text email body";
$htmlBody = "HTML"
$contentType = "Contact";
$mergeContext = "";
$tmpId = $app->addEmailTemplate($title, $category, $fromAddress, $toAddress, $ccAddress, $bccAddresses, $subject, $textBody, $htmlBody, $contentType, $mergeContext);

如果您想保持与广告系列的互动,可以使用目标功能。详细了解goals here

您将在funnel service之后查看目标是否已完成(例如订单)并在此时发送感谢信。