天道酬勤,学无止境

campaign-monitor

stdClass object and foreach loops - campaign monitor api

问题 我目前在活动监视器 API 中工作。 这是我的代码: require_once '../../csrest_general.php'; $auth = array('api_key' => 'xxxxxxxxxxxxxxxxxxxxxxxxx'); $wrap = new CS_REST_General($auth); $result = $wrap->get_clients(); echo "Result of /api/v3/clients\n<br />"; if($result->was_successful()) { echo "Got clients\n<br /><pre>"; var_dump($result->response); } else { echo 'Failed with code '.$result->http_status_code."\n<br /><pre>"; var_dump($result->response); } echo '</pre>'; 这将输出以下内容: array(2) { [0]=> object(stdClass)#5 (2) { ["ClientID"]=> string(32) "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ["Name"]=> string(12)

2022-05-06 04:16:04    分类:技术分享    php   api   foreach   campaign-monitor

stdClass object and foreach loops - campaign monitor api

I am currently working within the campaign monitor api. Here is my code: require_once '../../csrest_general.php'; $auth = array('api_key' => 'xxxxxxxxxxxxxxxxxxxxxxxxx'); $wrap = new CS_REST_General($auth); $result = $wrap->get_clients(); echo "Result of /api/v3/clients\n<br />"; if($result->was_successful()) { echo "Got clients\n<br /><pre>"; var_dump($result->response); } else { echo 'Failed with code '.$result->http_status_code."\n<br /><pre>"; var_dump($result->response); } echo '</pre>'; This outputs the following: array(2) { [0]=> object(stdClass)#5 (2) { ["ClientID"]=> string(32)

2022-04-28 18:07:55    分类:问答    php   api   foreach   campaign-monitor

如何在 Outlook 中将 HTML 电子邮件居中并填充背景颜色?(How to centre a HTML email in outlook and make the background color filled?)

问题 只是一个简单的问题 - 我正在使用 Campaign Monitor 发送 HTML 电子邮件,但是它们不在 Outlook 中居中,而是在 Apple 邮件和 gmail 中。 我曾尝试为 Outlook 添加以下 css: .readMsgBody .c-ReadMessagePartBody{ background-color: #F3F3F3; padding-left: 15%; padding-right: 15%; } 除此之外,我还为我的 HTML 和 Body 标签设置了背景颜色。 以及身体内的一张桌子。 并将它们全部对齐到中心。 谢谢你。 回答1 tl;dr Outlook 不喜欢大量编码的电子邮件,因为它使用文字处理器或过时的软件来阅读它们。 使用表格设计,并将父表格设为背景色。 Outlook 2007、2010 和 2013 使用 Microsoft Word(分别为 2007、2010 和 2013 版)来呈现电子邮件。 是的,文字处理器用于在较新版本的 Outlook 中呈现电子邮件! Outlook 使用 Word 作为渲染引擎导致对在 Word 中查看的电子邮件的 CSS 支持令人失望的挫折,以及大量令人沮丧的怪癖,导致电子邮件设计社区的一些强烈反对。 事实上,甚至有一个网站致力于他们的事业。 -litmus.com 即使是旧版本的

2021-10-19 11:47:57    分类:技术分享    email   outlook   alignment   background-color   campaign-monitor

How to centre a HTML email in outlook and make the background color filled?

Just a quick question - I am using Campaign Monitor to send out HTML E-mails, however they are not centred in outlook, but are in Apple mail and gmail. I have tried adding the following css just for outlook: .readMsgBody .c-ReadMessagePartBody{ background-color: #F3F3F3; padding-left: 15%; padding-right: 15%; } as well as this I have set background Colors for my HTML and Body tags. as well as a table within the body. And aligned all of them to centre. Thank you.

2021-10-19 04:10:04    分类:问答    email   outlook   alignment   background-color   campaign-monitor

Campaign Monitor Ajax form submission

Campaign Monitor seems to have updated their code snippets to use a different method of submitting the forms. Now in the <form> tag there's a data-id attribute. None of the usual ways of submitting the forms using Ajax work anymore. Does anybody know how to use Ajax to submit the new style of Campaign Monitor forms? Here's the code snippet Campaign Monitor gives me: <form id="subForm" class="js-cm-form" action="https://www.createsend.com/t/subscribeerror?description=" method="post" data-id=

2021-06-26 12:52:14    分类:问答    javascript   ajax   campaign-monitor