<?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>bluejay digital</title>
	<atom:link href="http://bluejaydigital.com/feed" rel="self" type="application/rss+xml" />
	<link>http://bluejaydigital.com</link>
	<description>Clear Thinking – Pure Technology</description>
	<lastBuildDate>Wed, 18 Apr 2012 13:00:48 +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>Shorter Long Mailtos</title>
		<link>http://bluejaydigital.com/editorial/shorter-long-mailtos</link>
		<comments>http://bluejaydigital.com/editorial/shorter-long-mailtos#comments</comments>
		<pubDate>Sat, 31 Mar 2012 13:30:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://bluejaydigital.com/?p=606</guid>
		<description><![CDATA[OK, so who said this was going to be easy unique? Having initially sorted out the &#8216;Great Mailto Mystery&#8216; (thanks to some considerable patience on the part of my design partner Peter). But then they began to fail again – I’d hit the 2K limit. As I said in my &#8230;<p><a href="http://bluejaydigital.com/editorial/shorter-long-mailtos" class="more-link"><span>Continue Reading &#8594;</span></a></p>]]></description>
			<content:encoded><![CDATA[<h2>OK, so who said this was going to be <span style="color: #ff0000;"><del>easy</del></span> unique?</h2>
<p>Having initially sorted out the &#8216;<a title="Long Mailtos" href="http://bluejaydigital.com/uncategorized/long-urls-in-mailto-links-solved">Great Mailto Mystery</a>&#8216; (thanks to some considerable patience on the part of my design partner Peter). But then they began to fail again – I’d hit the 2K limit.</p>
<p>As I said in my previous post there is a <a title="Maximum URL length is 2,083 characters in Internet Explorer" href="http://support.microsoft.com/kb/208427" target="_blank">general limit</a> on the length of urls in IE of 2083 characters and this, of course, applies to mailtos &#8211; a particular form of url.</p>
<p>My <a title="bluejay eTimesheets" href="http://bluejaydigital.com/etimesheets">eTimesheet</a> application provides a facility to email (or SMS) all the freelancers working in a particular period (usually a week but also during any search period). This list is created during the iteration through the array of bookings, so it contains duplicates where freelancers work for more than one client in that week. I had failed to clean up the list, instead relying (unconsciously) on the generosity of others i.e. mail servers are not a dumb as me and don’t send the same email twice when there are duplicates in the Bcc list.</p>
<p>Being self-taught in PHP (a little learning is certainly a dangerous thing!) I tend to learn this stuff as I go and in response to actual need. I had therefore managed to overlook the <a title="php: array-unique() function" href="http://php.net/manual/en/function.array-unique.php" target="_blank">array_unique</a> function (along with dozens of its friends). So, having built my (semi-colon separated) list of emails, I needed to de-duplicate:</p>
<pre style="padding-left: 30px;">...
$working_emails = explode(';',$working_emails);
<span style="padding-left: 30px;">$working_emails = array_unique($working_emails)</span>;
$working_emails = implode(';',$working_emails);
...</pre>
<p>A shorter url, and all was well with the world – at least until someone wants to email everyone who worked last year …</p>
<p>Or there are more than about 80 people to email (I have average email length of around 24 characters but see this <a title="what's the average length of an email address" href="http://janusz.slota.name/blog/2009/05/email-length/" target="_blank">post</a> for a higher figure). I need a generic solution!</p>
]]></content:encoded>
			<wfw:commentRss>http://bluejaydigital.com/editorial/shorter-long-mailtos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Long URLs in mailto: links &#8211; &#8220;Solved&#8221;</title>
		<link>http://bluejaydigital.com/editorial/long-urls-in-mailto-links-solved</link>
		<comments>http://bluejaydigital.com/editorial/long-urls-in-mailto-links-solved#comments</comments>
		<pubDate>Fri, 30 Mar 2012 13:19:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://bluejaydigital.com/?p=558</guid>
		<description><![CDATA[Hey Ho! I struggled with this problem for quite some time before coming to a &#8220;solution&#8217;. If my google trawl is anything to go by, so have a fair number of others. Actually there isn&#8217;t a problem, as such, just a limitation of what you can do in certain browsers (you know &#8230;<p><a href="http://bluejaydigital.com/editorial/long-urls-in-mailto-links-solved" class="more-link"><span>Continue Reading &#8594;</span></a></p>]]></description>
			<content:encoded><![CDATA[<h2>Hey Ho!</h2>
<p>I struggled with this problem for quite some time before coming to a &#8220;solution&#8217;. If my google trawl is anything to go by, so have a fair number of others.</p>
<p>Actually there isn&#8217;t a problem, as such, just a limitation of what you can do in certain browsers (you know who you are IE).</p>
<p>If you have a mailto link that is longer than 512 characters you will run into problems. The exciting bit (lol) is that they won&#8217;t be apparent if you test in FireFox, Safari, Chrome or Opera. But if you click on the link in IE (I&#8217;ve only tested 8 and 9 but I assume it&#8217;s the same with 6 and 7) then you will see the problem &#8211; or rather you won&#8217;t as nothing much happens. The email client is not called, no email is created and you are sent to a blank page or alternatively absolutely nothing happens.</p>
<p>There may be the following error message: &#8220;The data area passed to a system call is too small.&#8221; This can be seen by double-clicking on the task bar.</p>
<p>The solution, of sorts, is either to shorten the mailto link (difficult in my case as it is dynamically generated) or try something else.</p>
<p>It seems that if you turn on Protected Mode in IE this can (partially) help. Turning on Protected Mode is done via the Tools menu &#8211; choose Internet Options and click on the Security tab. Bizzarely, this seems to turned off by default in some installations. This seems to fix the problem as this raises the limit to around <del>2K</del>  2083 (see my new post <a href="http://bluejaydigital.com/editorial/shorter-long-mailtos">here</a>) which should be enough, but &#8230;</p>
<p>If this doesn&#8217;t solve the problem you may have exceeded the larger 2Kcharacter limit in IE.</p>
<p>More anon &#8230;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://bluejaydigital.com/editorial/long-urls-in-mailto-links-solved/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

