<?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>Subesh Pokhrel&#039;s Blog - Magento Development Tips &#187; email track</title>
	<atom:link href="http://subesh.com.np/tag/email-track/feed/" rel="self" type="application/rss+xml" />
	<link>http://subesh.com.np</link>
	<description>PHP &#38; Magento Tips and Tutorials</description>
	<lastBuildDate>Wed, 01 Feb 2012 04:09:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Newsletter Email Tracking: Read or Not?</title>
		<link>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/</link>
		<comments>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 11:13:36 +0000</pubDate>
		<dc:creator>Subesh Pokhrel</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[email track]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://subesh.com.np/?p=72</guid>
		<description><![CDATA[I have completed first phase of a simple, yet useful Newsletter System. When I demonstrated to the clients, they came up with a question if the newsletter being send was opened or not by the newsletter subscribers ? I then thought.. let see how its done. Then I came with this simple tracking trick, most [...]]]></description>
			<content:encoded><![CDATA[<p>I have completed first phase of a simple, yet useful Newsletter System. When I demonstrated to the clients, they came up with a question if the newsletter being send was opened or not by the newsletter subscribers ? I then thought.. let see how its done. Then I came with this simple tracking trick, most of the <strong>spammers </strong>used to verify if the email address was valid or not.<br />
The first thing I did was adding 1px by 1px image on the footer of the newsletter, whose source was set something like this <em>http://subesh.com.np/newsletter/track.php?identitycode=CLIENTID_SENDEMAILID</em>. Here CLIENTID = Your Clients ID and SENDEMAILID = Id of the Newsletter sent. Now, when the image is loaded while viewing the newsletter on the mail or say when the client reads the newsletter email. The track.php page is requested with identitycode as the GET parameter. And when you get the request from the mail to your server&#8217;s page, you can do anything you want. What I did was setting the mail_read column of the database field as 1. And echoed the source of the image file on the last line.<br />
The code below is for the track.php.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$get=explode(&quot;_&quot;,$_GET['identitycode']);
$sendid=$get['0'];
$recid=$get['1'];
$query=&quot;INSERT INTO tbl_track SET mail_read='1' WHERE send_id='$sendid' and user_id='$recid'&quot;;
mysql_query($query);
echo &quot;http://subesh.com.np/newsletter/images/transparent_1px.gif&quot;;
?&gt;
</pre>
<p>Isn&#8217;t this the easiest idea anyone could ever come up with. Yeha! Thumbs up to me!!</p>
]]></content:encoded>
			<wfw:commentRss>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

