<?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: Redirecting email whilst developing</title>
	<atom:link href="http://akrabat.com/php/redirecting-email-whilst-developing/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/php/redirecting-email-whilst-developing/</link>
	<description>Developing PHP software in the Real World, by Rob Allen</description>
	<lastBuildDate>Wed, 08 Feb 2012 14:36:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: David P.</title>
		<link>http://akrabat.com/php/redirecting-email-whilst-developing/#comment-32159</link>
		<dc:creator>David P.</dc:creator>
		<pubDate>Fri, 19 Mar 2010 20:09:13 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=906#comment-32159</guid>
		<description>@Aaron that won&#039;t work since sendmail_path is not settable via ini_set() as sendmail_path has changeable type of PHP_INI_SYSTEM. However, I believe you can put:

php_admin_value sendmail_path /usr/local/bin/trapmail

in a vhost entry in httpd.conf (will not work in .htaccess tho)

Someone correct me if I am wrong.</description>
		<content:encoded><![CDATA[<p>@Aaron that won't work since sendmail_path is not settable via ini_set() as sendmail_path has changeable type of PHP_INI_SYSTEM. However, I believe you can put:</p>
<p>php_admin_value sendmail_path /usr/local/bin/trapmail</p>
<p>in a vhost entry in httpd.conf (will not work in .htaccess tho)</p>
<p>Someone correct me if I am wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/php/redirecting-email-whilst-developing/#comment-30217</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Tue, 19 Jan 2010 07:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=906#comment-30217</guid>
		<description>Tjorriemorrie,

That only works for Zend Framework applications and for one developer.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Tjorriemorrie,</p>
<p>That only works for Zend Framework applications and for one developer.</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tjorriemorrie</title>
		<link>http://akrabat.com/php/redirecting-email-whilst-developing/#comment-30216</link>
		<dc:creator>Tjorriemorrie</dc:creator>
		<pubDate>Tue, 19 Jan 2010 06:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=906#comment-30216</guid>
		<description>Well, why don&#039;t you just set the addTo according to the application_env? Seems pretty simple enough for me.

		if (APPLICATION_ENV == &#039;testing&#039; &#124;&#124; APPLICATION_ENV == &#039;development&#039;) $mail-&gt;addTo(&#039;dev@mail.com&#039;, &#039;Dev&#039;);
		if (APPLICATION_ENV == &#039;testing&#039; &#124;&#124; APPLICATION_ENV == &#039;production&#039;) $mail-&gt;addTo(&#039;client@mail.com&#039;, &#039;Client&#039;);</description>
		<content:encoded><![CDATA[<p>Well, why don't you just set the addTo according to the application_env? Seems pretty simple enough for me.</p>
<p>		if (APPLICATION_ENV == 'testing' || APPLICATION_ENV == 'development') $mail-&gt;addTo('dev@mail.com', 'Dev');<br />
		if (APPLICATION_ENV == 'testing' || APPLICATION_ENV == 'production') $mail-&gt;addTo('client@mail.com', 'Client');</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Austin</title>
		<link>http://akrabat.com/php/redirecting-email-whilst-developing/#comment-30155</link>
		<dc:creator>Jason Austin</dc:creator>
		<pubDate>Fri, 15 Jan 2010 13:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=906#comment-30155</guid>
		<description>I just re-read what I posted and I don&#039;t actually hack user&#039;s email accounts...duh...I change their account IN MY SYSTEM so that their email address is mine.  Don&#039;t think my brain is engaged yet this morning :)</description>
		<content:encoded><![CDATA[<p>I just re-read what I posted and I don't actually hack user's email accounts...duh...I change their account IN MY SYSTEM so that their email address is mine.  Don't think my brain is engaged yet this morning :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Austin</title>
		<link>http://akrabat.com/php/redirecting-email-whilst-developing/#comment-30154</link>
		<dc:creator>Jason Austin</dc:creator>
		<pubDate>Fri, 15 Jan 2010 13:25:02 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=906#comment-30154</guid>
		<description>That is much better than my typical solution, which usually involves hacking at the user&#039;s email accounts to send mail to me rather than them.  Great tip!</description>
		<content:encoded><![CDATA[<p>That is much better than my typical solution, which usually involves hacking at the user's email accounts to send mail to me rather than them.  Great tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/php/redirecting-email-whilst-developing/#comment-30151</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Fri, 15 Jan 2010 10:39:32 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=906#comment-30151</guid>
		<description>Dan,
Replacement SMTP servers work for any development involving email.

Jan,
Thanks for the info on papercut. I&#039;d never heard of it.

Aaron,
Good tip! 


Regards,

Rob..</description>
		<content:encoded><![CDATA[<p>Dan,<br />
Replacement SMTP servers work for any development involving email.</p>
<p>Jan,<br />
Thanks for the info on papercut. I'd never heard of it.</p>
<p>Aaron,<br />
Good tip! </p>
<p>Regards,</p>
<p>Rob..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron James</title>
		<link>http://akrabat.com/php/redirecting-email-whilst-developing/#comment-30150</link>
		<dc:creator>Aaron James</dc:creator>
		<pubDate>Fri, 15 Jan 2010 10:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=906#comment-30150</guid>
		<description>Only drawback of putting it in php.ini is any applications that you want to send real emails will fail.

When using zf you can just pop this into your application.ini set the sendmail_path on a per-environment basis. Which is pretty handy!</description>
		<content:encoded><![CDATA[<p>Only drawback of putting it in php.ini is any applications that you want to send real emails will fail.</p>
<p>When using zf you can just pop this into your application.ini set the sendmail_path on a per-environment basis. Which is pretty handy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://akrabat.com/php/redirecting-email-whilst-developing/#comment-30149</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Fri, 15 Jan 2010 10:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=906#comment-30149</guid>
		<description>I use Papercut (http://papercut.codeplex.com) on my Windows boxes...</description>
		<content:encoded><![CDATA[<p>I use Papercut (<a href="http://papercut.codeplex.com" rel="nofollow">http://papercut.codeplex.com</a>) on my Windows boxes...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Davies</title>
		<link>http://akrabat.com/php/redirecting-email-whilst-developing/#comment-30148</link>
		<dc:creator>Daniel Davies</dc:creator>
		<pubDate>Fri, 15 Jan 2010 08:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=906#comment-30148</guid>
		<description>Thanks for sharing this Rob, I&#039;ve been wondering how you do it for a while.

I assume this principle does not apply just to PHP, but any thing you may be testing on your computer?</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this Rob, I've been wondering how you do it for a while.</p>
<p>I assume this principle does not apply just to PHP, but any thing you may be testing on your computer?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

