<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Newsletter Email Tracking: Read or Not?</title>
	<atom:link href="http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/feed/" rel="self" type="application/rss+xml" />
	<link>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/</link>
	<description>PHP &#38; Magento Tips and Tutorials</description>
	<lastBuildDate>Fri, 27 Jan 2012 10:29:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Subesh Pokhrel</title>
		<link>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/#comment-96</link>
		<dc:creator>Subesh Pokhrel</dc:creator>
		<pubDate>Wed, 20 Jan 2010 10:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=72#comment-96</guid>
		<description>Did you put a 1px image code like this

[ img src=&quot;http://subesh.com.np/newsletter/track.php?identitycode=CLIENTID_SENDEMAILID&quot; width=1px height=1px ]

The html code has not been shown</description>
		<content:encoded><![CDATA[<p>Did you put a 1px image code like this</p>
<p>[ img src="http://subesh.com.np/newsletter/track.php?identitycode=CLIENTID_SENDEMAILID" width=1px height=1px ]</p>
<p>The html code has not been shown</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikas</title>
		<link>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/#comment-95</link>
		<dc:creator>Vikas</dc:creator>
		<pubDate>Wed, 20 Jan 2010 08:46:37 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=72#comment-95</guid>
		<description>Hello,

I need to track whether email sent by me is being opened/read by the reciepient or not.

I am trying your above given script,but it doesn&#039;t works.

my code is :

Html Mailer Content:

I have appended this code in the footer of html mailer file.




Action file code :

$email=$_REQUEST[&#039;email&#039;];
$category=$_REQUEST[&#039;category&#039;];
$rssel = mysql_query(&quot;SELECT * FROM mytable WHERE CategoryId=&#039;$category&#039; AND Email=&#039;$email&#039;&quot;);
if(mysql_num_rows($rssel) == 0)
{
	mysql_query(&quot;INSERT INTO mytable(CategoryId,Email) VALUES(&#039;$category&#039;,&#039;$email&#039;)&quot;);
}
echo &quot;http://www.mydomain/images/calendar.gif&quot;;

But when we execute the page it does not replaces source with  following code
echo &quot;http://www.mydomain/images/calendar.gif&quot;;


Kindly Help!!

Thanks in advance...

Regards
Vikas</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I need to track whether email sent by me is being opened/read by the reciepient or not.</p>
<p>I am trying your above given script,but it doesn&#8217;t works.</p>
<p>my code is :</p>
<p>Html Mailer Content:</p>
<p>I have appended this code in the footer of html mailer file.</p>
<p>Action file code :</p>
<p>$email=$_REQUEST['email'];<br />
$category=$_REQUEST['category'];<br />
$rssel = mysql_query(&#8220;SELECT * FROM mytable WHERE CategoryId=&#8217;$category&#8217; AND Email=&#8217;$email&#8217;&#8221;);<br />
if(mysql_num_rows($rssel) == 0)<br />
{<br />
	mysql_query(&#8220;INSERT INTO mytable(CategoryId,Email) VALUES(&#8216;$category&#8217;,'$email&#8217;)&#8221;);<br />
}<br />
echo &#8220;http://www.mydomain/images/calendar.gif&#8221;;</p>
<p>But when we execute the page it does not replaces source with  following code<br />
echo &#8220;http://www.mydomain/images/calendar.gif&#8221;;</p>
<p>Kindly Help!!</p>
<p>Thanks in advance&#8230;</p>
<p>Regards<br />
Vikas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miliscent</title>
		<link>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/#comment-94</link>
		<dc:creator>miliscent</dc:creator>
		<pubDate>Fri, 13 Mar 2009 18:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=72#comment-94</guid>
		<description>I&#039;ll throw you a bone here since I found your url in the Magento forum and you helped me out with the entity_id filter.

Using a *.php (or any script language) to track and then return an image is a definite no-no.  Spam filters will pickup on this (web beacon) and slam you for it.

What you really want to do is use an http handler in a directory to catch *.gif/jpg calls and use the format something like _.gif.  Then use the params in the name to tag the reader as opening a specific newsletter.

Honestly though... writing a newsletter delivery system is something best left to someone dedicated to the task ;o)</description>
		<content:encoded><![CDATA[<p>I&#8217;ll throw you a bone here since I found your url in the Magento forum and you helped me out with the entity_id filter.</p>
<p>Using a *.php (or any script language) to track and then return an image is a definite no-no.  Spam filters will pickup on this (web beacon) and slam you for it.</p>
<p>What you really want to do is use an http handler in a directory to catch *.gif/jpg calls and use the format something like _.gif.  Then use the params in the name to tag the reader as opening a specific newsletter.</p>
<p>Honestly though&#8230; writing a newsletter delivery system is something best left to someone dedicated to the task ;o)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subesh Pokhrel</title>
		<link>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/#comment-93</link>
		<dc:creator>Subesh Pokhrel</dc:creator>
		<pubDate>Thu, 04 Dec 2008 05:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=72#comment-93</guid>
		<description>yeha!... I have seen the function sanitize()...ummmm... yeha... joomla search component :D</description>
		<content:encoded><![CDATA[<p>yeha!&#8230; I have seen the function sanitize()&#8230;ummmm&#8230; yeha&#8230; joomla search component <img src='http://subesh.com.np/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roshan Bhattarai</title>
		<link>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/#comment-92</link>
		<dc:creator>Roshan Bhattarai</dc:creator>
		<pubDate>Wed, 03 Dec 2008 18:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=72#comment-92</guid>
		<description>nice trick but never ever forget to sanitize the data before using them in a query...</description>
		<content:encoded><![CDATA[<p>nice trick but never ever forget to sanitize the data before using them in a query&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subesh Pokhrel</title>
		<link>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/#comment-91</link>
		<dc:creator>Subesh Pokhrel</dc:creator>
		<pubDate>Fri, 14 Nov 2008 11:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=72#comment-91</guid>
		<description>Yeha! Sure...</description>
		<content:encoded><![CDATA[<p>Yeha! Sure&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sachi</title>
		<link>http://subesh.com.np/2008/10/newsletter-email-tracking-read-or-not/#comment-90</link>
		<dc:creator>sachi</dc:creator>
		<pubDate>Thu, 13 Nov 2008 19:37:25 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=72#comment-90</guid>
		<description>You can do the same with ASP?</description>
		<content:encoded><![CDATA[<p>You can do the same with ASP?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

