CiviCRM/CiviMail: Difference between revisions

No edit summary
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
After the initial checklist in setting up your CiviCRM instance, you'll want to deep-dive into the various aspects of CiviMail
After the initial checklist in setting up your CiviCRM instance, you'll want to deep-dive into the various aspects of CiviMail
* http://book.civicrm.org/user/email/setup/
* http://book.civicrm.org/user/email/setup/
The documentation is really poor for the mail handling aspects.  To be fair, it's complicated.  But I wish I had the time to contribute to the documentation.  Maybe someday.  The best succinct resource I found for adding a 'Newsletter subscription form' is at https://forum.civicrm.org/index.php?topic=18364.0 And this old post from 2013 does a pretty good job of explaining the variations on [https://warrenpost.wordpress.com/2013/09/13/civicrm-mail/ setting up 'Bounce Handling' and 'Email to Activity' handling].


== Background ==
== Background ==
Line 44: Line 46:




<source lang="php">
<syntaxhighlight lang="php">
$result = civicrm_api3('CustomValue', 'get', array(
$result = civicrm_api3('CustomValue', 'get', array(
   'sequential' => 1,
   'sequential' => 1,
   'entity_id' => 2,
   'entity_id' => 2,
));
));
</source>
</syntaxhighlight>
you'll get 31 results:
you'll get 31 results:
<pre>
<pre>
Line 72: Line 74:
If you do a 'Contact' GET via the API, searching for contacts with a 'custom_40' like 'freephile'
If you do a 'Contact' GET via the API, searching for contacts with a 'custom_40' like 'freephile'


<source lang="php">
<syntaxhighlight lang="php">
$result = civicrm_api3('Contact', 'get', array(
$result = civicrm_api3('Contact', 'get', array(
   'sequential' => 1,
   'sequential' => 1,
Line 78: Line 80:
));
));


</source>
</syntaxhighlight>
You'll get "no results"
You'll get "no results"
<pre>
<pre>