<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Money-Code &#187; email</title>
	<atom:link href="http://www.money-code.com/tag/email/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.money-code.com</link>
	<description>Coding For Online Success</description>
	<lastBuildDate>Tue, 15 Nov 2011 18:25:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Talk to your merchant contact at CJ about coupons!</title>
		<link>http://www.money-code.com/2009/08/talk-to-your-merchant-contact-at-cj-about-coupons/</link>
		<comments>http://www.money-code.com/2009/08/talk-to-your-merchant-contact-at-cj-about-coupons/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 17:02:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Affiliate Marketing]]></category>
		<category><![CDATA[affiliate managers]]></category>
		<category><![CDATA[cj]]></category>
		<category><![CDATA[coupons]]></category>
		<category><![CDATA[deals]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[promotions]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=512</guid>
		<description><![CDATA[Personally, I think this is a good tip and can be applied to other affiliate merchant networks, but I primarily focus on Commission Junction. It&#8217;s important to contact your merchant contacts and request that you get updated with information regarding deals, coupons, promotions, etc. This is a incredibly useful for providing some useful content besides [...]


Related posts:<ol><li><a href='http://www.money-code.com/2009/07/hub-blogs-strategy/' rel='bookmark' title='Hub Blogs Strategy'>Hub Blogs Strategy</a></li>
<li><a href='http://www.money-code.com/2009/07/working-the-backlinks/' rel='bookmark' title='Working the backlinks'>Working the backlinks</a></li>
<li><a href='http://www.money-code.com/2008/11/cj-sorry-your-application-was-not-approved/' rel='bookmark' title='CJ &#8211; Sorry, your application was not approved'>CJ &#8211; Sorry, your application was not approved</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F08%2Ftalk-to-your-merchant-contact-at-cj-about-coupons%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F08%2Ftalk-to-your-merchant-contact-at-cj-about-coupons%2F&amp;source=hanjicode&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignleft size-full wp-image-513" title="cj_logo" src="http://www.money-code.com/wp-content/uploads/2009/08/cj_logo.gif" alt="cj_logo" width="227" height="37" />Personally, I think this is a good tip and can be applied to other affiliate merchant networks, but I primarily focus on Commission Junction. It&#8217;s important to contact your merchant contacts and request that you get updated with information regarding deals, coupons, promotions, etc. This is a incredibly useful for providing some useful content besides the usual product information.</p>
<p>As mentioned earlier, I&#8217;ve been working on creating various WordPress <a href="http://www.money-code.com/2009/07/hub-blogs-strategy/" target="_self">hub blogs</a> within my niches. When there are promotions and specifically coupons, I like to blog about them. I&#8217;m notified by several of my merchant contacts as soon as they&#8217;re released, then I also like to tweet the blog entry regarding those offers.</p>
<p>I see this creating value to my <a href="http://www.money-code.com/2009/07/hub-blogs-strategy/" target="_self">hub blogs</a>. Basically, people are starting to sign up to my RSS feeds to find promotional opportunities. If you haven&#8217;t done so, contact your contacts at CJ and request that you get mailed promotions! Might help with your commissions!</p>
<h4>Incoming search terms:</h4><ul><li>how to receive cj coupons in email</li></ul><div style='clear:both'></div>

<p>Related posts:<ol><li><a href='http://www.money-code.com/2009/07/hub-blogs-strategy/' rel='bookmark' title='Hub Blogs Strategy'>Hub Blogs Strategy</a></li>
<li><a href='http://www.money-code.com/2009/07/working-the-backlinks/' rel='bookmark' title='Working the backlinks'>Working the backlinks</a></li>
<li><a href='http://www.money-code.com/2008/11/cj-sorry-your-application-was-not-approved/' rel='bookmark' title='CJ &#8211; Sorry, your application was not approved'>CJ &#8211; Sorry, your application was not approved</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/08/talk-to-your-merchant-contact-at-cj-about-coupons/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CJ Quick Stat Email Script</title>
		<link>http://www.money-code.com/2007/10/cj-quick-stat-email-script/</link>
		<comments>http://www.money-code.com/2007/10/cj-quick-stat-email-script/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 19:38:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Affiliate Marketing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[cj]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>At the digital point forums today, someone asked if it there was a email report that could be sent from CJ. I've looked for this in the past, but have not had any luck finding this feature, and thought it might be cool to throw something together that sort of does this.

<p>My idea was simple, to create a PHP application that would use cURL to login and return me the quick stats results. After retrieving the stats, it would email me the results. I used one library called LIB_parse.php which makes it extremely handy to parse through HTML code to drill down to the specific section you're looking for. To get this to email, you'll need to run this is crontab. Possible as a PHP-CLI (command line script) or use lynx/wget to hit a web page to execute the code.



Related posts:<ol><li><a href='http://www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/' rel='bookmark' title='Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database'>Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database</a></li>
<li><a href='http://www.money-code.com/2009/09/how-to-increase-your-email-subscribers-list/' rel='bookmark' title='How to Increase Your Email Subscribers List'>How to Increase Your Email Subscribers List</a></li>
<li><a href='http://www.money-code.com/2007/09/using-ebays-api-to-search-auctions-and-return-results/' rel='bookmark' title='Using eBay&#8217;s API to search auctions and return results'>Using eBay&#8217;s API to search auctions and return results</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2007%2F10%2Fcj-quick-stat-email-script%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2007%2F10%2Fcj-quick-stat-email-script%2F&amp;source=hanjicode&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>At the digital point forums today, someone asked if it there was a email report that could be sent from CJ. I&#8217;ve looked for this in the past, but have not had any luck finding this feature, and thought it might be cool to throw something together that sort of does this.</p>
<p>My idea was simple, to create a PHP application that would use cURL to login and return me the quick stats results. After retrieving the stats, it would email me the results. I used one library called LIB_parse.php which makes it extremely handy to parse through HTML code to drill down to the specific section you&#8217;re looking for. To get this to email, you&#8217;ll need to run this is crontab. Possible as a PHP-CLI (command line script) or use lynx/wget to hit a web page to execute the code.<br />
<!--break--></p>
<p>Below is the code to get this to work:</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">&lt;?php</span><br />
<span class="kw1">include</span><span class="br0">&#40;</span><span class="st0">&quot;lib/LIB_parse.php&quot;</span><span class="br0">&#41;</span>;<br />
<span class="re0">$uname</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&quot;account@yourdomain.com&quot;</span>;<br />
<span class="re0">$password</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&quot;CJPassword&quot;</span>;<br />
<span class="re0">$loginURL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&quot;https://members.cj.com/member/foundation/memberlogin.do&quot;</span>; <span class="co1">// keep it secure with SSL</span><br />
<span class="re0">$agent</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1&quot;</span>;<br />
<span class="re0">$POSTFIELDS</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&#8216;uname=&#8217;</span>.<span class="re0">$uname</span>.<span class="st0">&#8216;&amp;nextpage=&amp;pw=&#8217;</span>.<span class="re0">$password</span>;<br />
<span class="re0">$emailAddy</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&quot;account@yourdomain.com&quot;</span>;<br />
<span class="re0">$ch</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = curl_init<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
curl_setopt<span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_URL,<span class="re0">$loginURL</span><span class="br0">&#41;</span>;<br />
curl_setopt<span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_SSL_VERIFYHOST, <span class="nu0">2</span><span class="br0">&#41;</span>;<br />
curl_setopt<span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_USERAGENT, <span class="re0">$agent</span><span class="br0">&#41;</span>;<br />
curl_setopt<span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_POST, <span class="nu0">1</span><span class="br0">&#41;</span>;<br />
curl_setopt<span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_POSTFIELDS,<span class="re0">$POSTFIELDS</span><span class="br0">&#41;</span>;<br />
curl_setopt<span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_RETURNTRANSFER, <span class="nu0">1</span><span class="br0">&#41;</span>;<br />
curl_setopt<span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_FOLLOWLOCATION, <span class="nu0">1</span><span class="br0">&#41;</span>;<br />
curl_setopt<span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_SSL_VERIFYPEER, <span class="nu0">0</span><span class="br0">&#41;</span>;<br />
<span class="kw1">if</span><span class="br0">&#40;</span>!<span class="re0">$result</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = curl_exec <span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;Unable to access site&quot;</span>;<br />
<span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; curl_close <span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$zone_array</span> = parse_array<span class="br0">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$result</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;&lt;!&#8211;Quickstats table&#8212;&gt;&quot;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;&lt;!&#8211;trend graph table&#8212;&gt;&quot;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INCL<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$quickStats</span>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="re0">$zone_array</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//echo $quickStats;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$to</span>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="re0">$emailAddy</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$subject</span>&nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&quot;CJ Quick Stat Report&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$message</span> &nbsp; &nbsp; &nbsp; &nbsp;= <span class="re0">$quickStats</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$headers</span> &nbsp; &nbsp; &nbsp; &nbsp;= <span class="st0">&quot;MIME-Version: 1.0&quot;</span>.<a href="http://www.php.net/chr"><span class="kw3">chr</span></a><span class="br0">&#40;</span><span class="nu0">10</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$headers</span> &nbsp; &nbsp; &nbsp; &nbsp;.= <span class="st0">&quot;From:&quot;</span>.<span class="re0">$emailAddy</span>.<a href="http://www.php.net/chr"><span class="kw3">chr</span></a><span class="br0">&#40;</span><span class="nu0">10</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$headers</span> &nbsp; &nbsp; &nbsp; &nbsp;.= <span class="st0">&quot;Content-type: text/html; charset=iso-8859-1&quot;</span>.<a href="http://www.php.net/chr"><span class="kw3">chr</span></a><span class="br0">&#40;</span><span class="nu0">10</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/mail"><span class="kw3">mail</span></a><span class="br0">&#40;</span><span class="re0">$to</span>, <span class="re0">$subject</span>, <span class="re0">$message</span>, <span class="re0">$headers</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw2">?&gt;</span><br />
&nbsp;</div>
<p>
You can download the file(s) here:<br />
<a href="http://www.money-code.com/files/stat_lookup.php" target="_blank">stat_lookup.php</a><br />
<a href="http://www.money-code.com/files/LIB_parse.php" target="_blank">LIB_parse.php</a></p>
<p>Disclaimer! I don&#8217;t know if this is against any CJ terms.. so use at your own risk.</p>
<h4>Incoming search terms:</h4><ul><li>members cj com member foundation memberlogin do</li></ul><div style='clear:both'></div>

<p>Related posts:<ol><li><a href='http://www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/' rel='bookmark' title='Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database'>Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database</a></li>
<li><a href='http://www.money-code.com/2009/09/how-to-increase-your-email-subscribers-list/' rel='bookmark' title='How to Increase Your Email Subscribers List'>How to Increase Your Email Subscribers List</a></li>
<li><a href='http://www.money-code.com/2007/09/using-ebays-api-to-search-auctions-and-return-results/' rel='bookmark' title='Using eBay&#8217;s API to search auctions and return results'>Using eBay&#8217;s API to search auctions and return results</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2007/10/cj-quick-stat-email-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
