<?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: Email Marketing</title>
	<atom:link href="http://www.stuffbysarah.net/2006/07/18/email-marketing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stuffbysarah.net/2006/07/18/email-marketing/</link>
	<description>PHP, WordPress and Business Ramblings</description>
	<lastBuildDate>Thu, 02 Feb 2012 19:31:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2006/07/18/email-marketing/comment-page-1/#comment-1767</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Mon, 31 Jul 2006 18:39:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2006/07/18/email-marketing/#comment-1767</guid>
		<description>Hey Chris, thanks for stopping by to let me know about version 2.0. I&#039;ll definitely grab it as I&#039;m possibly about to use it on another site too!

I took a guess at the missing code above and hopefully fixed it. I do get the jist however and once I try it I&#039;ll post up my definite working code for anyone else who&#039;s interested :D</description>
		<content:encoded><![CDATA[<p>Hey Chris, thanks for stopping by to let me know about version 2.0. I&#039;ll definitely grab it as I&#039;m possibly about to use it on another site too!</p>
<p>I took a guess at the missing code above and hopefully fixed it. I do get the jist however and once I try it I&#039;ll post up my definite working code for anyone else who&#039;s interested <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.stuffbysarah.net/2006/07/18/email-marketing/comment-page-1/#comment-1766</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 31 Jul 2006 18:06:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2006/07/18/email-marketing/#comment-1766</guid>
		<description>Hmm.... the blog messed my code up :(

Email me if you want some advice :)</description>
		<content:encoded><![CDATA[<p>Hmm&#8230;. the blog messed my code up <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Email me if you want some advice <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.stuffbysarah.net/2006/07/18/email-marketing/comment-page-1/#comment-1765</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 31 Jul 2006 18:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2006/07/18/email-marketing/#comment-1765</guid>
		<description>Hi Sarah!

FYI, If you download version 2.0 released yesterday you&#039;ll find a templating plugin which is for doing simple replacements in the mail body on a batch send.  I&#039;ve not quite sorted it to replace strings in the headers yet but this should become available in future versions.  It does what you want in terms of customizing the email for each recipient.

No documentation for the plugin given that it was just released yesterday but this is the essence of it... note the name changes in version 2 - I don&#039;t particularly like it but it&#039;s PEAR standards and people have been asking for it ;)

&lt;code class=&quot;php&quot;&gt;
&lt;?php
$addresses = array(&#039; &quot;Chris Corbyn1&quot; &#039;, &#039; &quot;Chris Corbyn2&quot; &#039;, &#039; &quot;Chris Corbyn3&quot; &#039;);
.
$tpl = array (
 array (&#039;foo&#039; =&gt; &#039;First email&#039;),
 array (&#039;foo&#039; =&gt; &#039;second email&#039;),
 array (&#039;foo&#039; =&gt; &#039;third email&#039;)
);
.
$mailer-&gt;loadPlugin(new Swift_Plugin_Template($tpl));
.
$mailer-&gt;send(
        $addresses,
        &#039;&quot;Your name&quot; &#039;,
        &#039;Some Subject&#039;,
        &quot;It&#039;s only me! and this is my {foo}!!!&quot;
);
.
$mailer-&gt;close();
?&gt;
&lt;/code&gt;

Regards,

Chris</description>
		<content:encoded><![CDATA[<p>Hi Sarah!</p>
<p>FYI, If you download version 2.0 released yesterday you&#039;ll find a templating plugin which is for doing simple replacements in the mail body on a batch send.  I&#039;ve not quite sorted it to replace strings in the headers yet but this should become available in future versions.  It does what you want in terms of customizing the email for each recipient.</p>
<p>No documentation for the plugin given that it was just released yesterday but this is the essence of it&#8230; note the name changes in version 2 &#8211; I don&#039;t particularly like it but it&#039;s PEAR standards and people have been asking for it <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><code class="php"><br />
&lt;?php<br />
$addresses = array(' "Chris Corbyn1" ', ' "Chris Corbyn2" ', ' "Chris Corbyn3" ');<br />
.<br />
$tpl = array (<br />
 array ('foo' =&gt; 'First email'),<br />
 array ('foo' =&gt; 'second email'),<br />
 array ('foo' =&gt; 'third email')<br />
);<br />
.<br />
$mailer-&gt;loadPlugin(new Swift_Plugin_Template($tpl));<br />
.<br />
$mailer-&gt;send(<br />
        $addresses,<br />
        '"Your name" ',<br />
        'Some Subject',<br />
        "It's only me! and this is my {foo}!!!"<br />
);<br />
.<br />
$mailer-&gt;close();<br />
?&gt;<br />
</code></p>
<p>Regards,</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2006/07/18/email-marketing/comment-page-1/#comment-1687</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Thu, 20 Jul 2006 18:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2006/07/18/email-marketing/#comment-1687</guid>
		<description>Hey Liam,

Sounds like a good solution, not something that crossed my mind to be honest. I think I forget the usefulness of javascript at times despite using it so much pre-PHP times!

Thanks for the additional option :)</description>
		<content:encoded><![CDATA[<p>Hey Liam,</p>
<p>Sounds like a good solution, not something that crossed my mind to be honest. I think I forget the usefulness of javascript at times despite using it so much pre-PHP times!</p>
<p>Thanks for the additional option <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liam</title>
		<link>http://www.stuffbysarah.net/2006/07/18/email-marketing/comment-page-1/#comment-1686</link>
		<dc:creator>Liam</dc:creator>
		<pubDate>Thu, 20 Jul 2006 17:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2006/07/18/email-marketing/#comment-1686</guid>
		<description>I worked around the same problem - personalise a bulk email - in a different way, the opposite way in fact.

Using just my normal PHP mail code with an email personalised  with names, login links etc (drawn from a database or from an array) and sent out by using a simple loop and javascript refresh passing the user_id to get the next email to send every couple of seconds. It just opens in a browser and sends until complete or until the browser is closed.

Easy peasy and not very intense on the server either.</description>
		<content:encoded><![CDATA[<p>I worked around the same problem &#8211; personalise a bulk email &#8211; in a different way, the opposite way in fact.</p>
<p>Using just my normal PHP mail code with an email personalised  with names, login links etc (drawn from a database or from an array) and sent out by using a simple loop and javascript refresh passing the user_id to get the next email to send every couple of seconds. It just opens in a browser and sends until complete or until the browser is closed.</p>
<p>Easy peasy and not very intense on the server either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.stuffbysarah.net/2006/07/18/email-marketing/comment-page-1/#comment-1678</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 18 Jul 2006 22:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2006/07/18/email-marketing/#comment-1678</guid>
		<description>Ive used this before, its really useful :)</description>
		<content:encoded><![CDATA[<p>Ive used this before, its really useful <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

