<?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>email track | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</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 &#38; Tutorials</description>
	<lastBuildDate>Thu, 12 Aug 2010 12:22:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>email track | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</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>
<p><span id="more-72"></span></p>
<pre class="brush: php;">
&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!!
<div style="margin-top: 15px; font-style: italic">
<p><strong>&copy;</strong> <a href="http://subesh.com.np/">Subesh Pokhrel&#039;s Blog &#8211; Magento Development Tips,PHP,Google Maps</a></p>
</div>
<hr /><small>Copyright &copy; 2010<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. </small>
<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fsubesh.com.np%2F2008%2F10%2Fnewsletter-email-tracking-read-or-not%2F" layout="standard" show_faces="true" width="450" action="like" colorscheme="light"></fb:like></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>
