<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Alert Record Saved 2nd email</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Alert-Record-Saved-2nd-email-81615</link>
        <description></description>
        <pubDate>Fri, 06 Mar 2026 12:45:36 -0800</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Alert-Record-Saved-2nd-email-81615" rel="self" type="application/rss+xml" />

                <item>
          <title>Alert Record Saved 2nd email</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2243268#post2243268</link>
          <description><![CDATA[<p>Thanx for the assistance Djuila. </p>
<p>Put in this new code and BOOM! Works great!</p>
<p>The Plugin is now EXACLTY what we need!</p>
]]></description>
          <pubDate>Fri, 12 Apr 2019 12:18:29 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2243268#post2243268</guid>
        </item>
                <item>
          <title>Alert Record Saved 2nd email</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2243266#post2243266</link>
          <description><![CDATA[<p>Hi Jim,</p>
<p><span class="tlid-translation translation"><span>Can you try this</span></span> :</p>
<pre class="language-php"><code>// send email on save
function _plugin_alertRecordSaved() {
	global $SETTINGS, $CURRENT_USER, $tableName, $isNewRecord, $oldRecord;

	//
	$emailTemplate = "alert-record-saved.mel.php";
	$emailHeaders  = emailTemplate_load(array(
		'template' =&gt; $emailTemplate,
		'template' =&gt; saved_sendAlertMessage_pluginDir() . "/$emailTemplate",
		'subject'  =&gt; '[CMSB :: Alert New Record Is Saved]',
		'from'     =&gt; $SETTINGS['adminEmail'],
		'to'       =&gt; $SETTINGS['adminEmail'],
		'placeholders' =&gt; array(
			'username'    =&gt; $CURRENT_USER['username'],
			'email'       =&gt; $CURRENT_USER['email'],
			'tableName'   =&gt; $tableName,
			'isNewRecord' =&gt; $isNewRecord,
			'recordNum'   =&gt; intval(@$_REQUEST['num']),
			'title'       =&gt; htmlspecialchars(@$_REQUEST['title']),
			'oldTitle'    =&gt; htmlspecialchars($oldRecord['title']),
		),
		'disabled' =&gt; false,
		'logging' =&gt; false,
	));

	$emailHeaders['headers']['CC'] = 'test@test.com';
	$mailErrors = sendMessage($emailHeaders);
	if ($mailErrors) { die("Mail Error: $mailErrors"); }
}</code></pre>
<p>Thanks,</p>
<p>Djulia</p>]]></description>
          <pubDate>Thu, 11 Apr 2019 23:37:07 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2243266#post2243266</guid>
        </item>
                <item>
          <title>Alert Record Saved 2nd email</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2243262#post2243262</link>
          <description><![CDATA[<p>Hi Djulia...</p>
<p>Can you tell us where this would belong in the code?</p>
<p>Here is the original code we currently have on the page:</p>
<p>// send email on save<br />function _plugin_alertRecordSaved() { <br />global $SETTINGS, $CURRENT_USER, $tableName, $isNewRecord, $oldRecord;</p>
<p>//<br />$emailTemplate = "alert-record-saved.mel.php";<br />$emailHeaders = emailTemplate_load(array(<br />'template' =&gt; $emailTemplate,<br />'template' =&gt; saved_sendAlertMessage_pluginDir() . "/$emailTemplate",<br />'subject' =&gt; '[CMSB :: Alert New Record Is Saved]',<br />'from' =&gt; $SETTINGS['adminEmail'],<br />'to' =&gt; $SETTINGS['adminEmail'],<br />'CC' =&gt; "osgajim@gmail.com",<br />'placeholders' =&gt; array(<br />'username' =&gt; $CURRENT_USER['username'],<br />'email' =&gt; $CURRENT_USER['email'],<br />'tableName' =&gt; $tableName,<br />'isNewRecord' =&gt; $isNewRecord,<br />'recordNum' =&gt; intval(@$_REQUEST['num']),<br />'title' =&gt; htmlspecialchars(@$_REQUEST['title']),<br />'oldTitle' =&gt; htmlspecialchars($oldRecord['title']),<br />),<br />'disabled' =&gt; false,<br />'logging' =&gt; false,<br />));<br />$mailErrors = sendMessage($emailHeaders);<br />if ($mailErrors) { die("Mail Error: $mailErrors"); }<br />}</p>]]></description>
          <pubDate>Thu, 11 Apr 2019 13:51:01 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2243262#post2243262</guid>
        </item>
                <item>
          <title>Alert Record Saved 2nd email</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2243260#post2243260</link>
          <description><![CDATA[<p>Hi Jim,</p>
<p><span class="tlid-translation translation"><span>Can you try this</span></span> :</p>
<blockquote>
<pre class="language-php"><code>$emailHeaders = emailTemplate_load(array(
  ...
));

$emailHeaders['headers']['CC'] = 'test@test.com';
$mailErrors = sendMessage($emailHeaders);
if ($mailErrors) { die("Mail Error: $mailErrors"); }</code></pre>
</blockquote>
<p>Thanks,<br />Djulia</p>]]></description>
          <pubDate>Thu, 11 Apr 2019 01:09:23 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2243260#post2243260</guid>
        </item>
                <item>
          <title>Alert Record Saved 2nd email</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2243257#post2243257</link>
          <description><![CDATA[<p>Hi Jim, </p>
<p>Could you copy/paste the whole mail configuration array here (including the CC) for me to have a look?</p>
<p>Thanks,</p>]]></description>
          <pubDate>Wed, 10 Apr 2019 15:41:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2243257#post2243257</guid>
        </item>
                <item>
          <title>Alert Record Saved 2nd email</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2243256#post2243256</link>
          <description><![CDATA[<p>Thanx Daniel.</p>
<p>Unfortunately, that easy fix did not work. Tried a few variations of that prior to posting.</p>
<p>Just tried it again with the double quotes. Still sends the "To" email, but not the CC.</p>
<p>:&gt;(</p>
<p>Jim</p>
]]></description>
          <pubDate>Wed, 10 Apr 2019 15:22:26 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2243256#post2243256</guid>
        </item>
                <item>
          <title>Alert Record Saved 2nd email</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2243254#post2243254</link>
          <description><![CDATA[<p>Hi Jim,</p>
<p>You should be able to add a CC by adding the following to the array of email options:</p>
<pre class="language-php"><code>   'headers' =&gt; array(
      "CC" =&gt; "cc@example.com",
    ),</code></pre>
<p>Let me know if that does the trick!</p>
<p>Thanks,</p>]]></description>
          <pubDate>Wed, 10 Apr 2019 14:32:22 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2243254#post2243254</guid>
        </item>
                <item>
          <title>Alert Record Saved 2nd email</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2243253#post2243253</link>
          <description><![CDATA[<p>Hey guys.</p>
<p>We were looking for a way to have CMS Builder send us an email when a writer posts. Added in the <span>Alert Record Saved</span> plugin and then fixed the error via another post in here. Works great now. But. we'd like it to send to two email addresses.</p>
<p>We played around trying to add in a 'cc' field but that does not seem to work. This seems like it should be so easy. uggh.</p>
<p>I know that <span>Alert Record Saved is not an Interactive Tools plugin, but is there a line of code we can stick in this thing to make the plugin send to developerEmail as a CC?</span></p>
<p><span>Thanx</span></p>
<p><span>Jim</span></p>]]></description>
          <pubDate>Wed, 10 Apr 2019 13:41:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2243253#post2243253</guid>
        </item>
              </channel>
    </rss>
  