<?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: Simple SugarCRM E-mail Wrapper</title>
	<atom:link href="http://redinkdesign.co/blarg/simple-sugarcrm-e-mail-wrapper/feed/" rel="self" type="application/rss+xml" />
	<link>http://redinkdesign.co/blarg/simple-sugarcrm-e-mail-wrapper/</link>
	<description>Good code is its own best documentation</description>
	<lastBuildDate>Sat, 07 Jan 2012 23:03:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jon Hermiz</title>
		<link>http://redinkdesign.co/blarg/simple-sugarcrm-e-mail-wrapper/#comment-61</link>
		<dc:creator>Jon Hermiz</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://redinkdesign.co/blarg/?p=12#comment-61</guid>
		<description>Any sugar developers this code will not work for several reasons.  First off change this:


		foreach ($tos as $name =&gt; $address){
			$mail-&gt;AddAddress(&quot;{$address}&quot;, &quot;{$name}&quot;);
		}

to this:


		foreach ($to as $name =&gt; $address){
			$mail-&gt;AddAddress(&quot;{$address}&quot;, &quot;{$name}&quot;);
		}

(Get rid of the s in $tos make it $to.  Also get rid of the required_once functions, they are not needed.  The logic hook file is being included in the controller where all needed common files are already included.  Once you do this it works fine.  I know this post was fairly old but I needed to do something similiar and found this.   Otherwise EXCELLENT job by the author...

Thanks!</description>
		<content:encoded><![CDATA[<p>Any sugar developers this code will not work for several reasons.  First off change this:</p>
<p>		foreach ($tos as $name => $address){<br />
			$mail->AddAddress(&#8220;{$address}&#8221;, &#8220;{$name}&#8221;);<br />
		}</p>
<p>to this:</p>
<p>		foreach ($to as $name => $address){<br />
			$mail->AddAddress(&#8220;{$address}&#8221;, &#8220;{$name}&#8221;);<br />
		}</p>
<p>(Get rid of the s in $tos make it $to.  Also get rid of the required_once functions, they are not needed.  The logic hook file is being included in the controller where all needed common files are already included.  Once you do this it works fine.  I know this post was fairly old but I needed to do something similiar and found this.   Otherwise EXCELLENT job by the author&#8230;</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashwin Surajbali</title>
		<link>http://redinkdesign.co/blarg/simple-sugarcrm-e-mail-wrapper/#comment-62</link>
		<dc:creator>Ashwin Surajbali</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://redinkdesign.co/blarg/?p=12#comment-62</guid>
		<description>Thanks, however $tos is the array of email addresses being passed in. The requires are there because it was written as a standalone outside of sugar...but you&#039;re right. Thanks for the input :)</description>
		<content:encoded><![CDATA[<p>Thanks, however $tos is the array of email addresses being passed in. The requires are there because it was written as a standalone outside of sugar&#8230;but you&#8217;re right. Thanks for the input <img src='http://redinkdesign.co/blarg/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://redinkdesign.co/blarg/simple-sugarcrm-e-mail-wrapper/#comment-63</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://redinkdesign.co/blarg/?p=12#comment-63</guid>
		<description>Hello,

Great job. But I&#039;m new in using &amp; developping with sugarcrm. By adding this code in mail class do you mean in the modules/email/email.php&quot;?

Thx a lot!</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Great job. But I&#8217;m new in using &#038; developping with sugarcrm. By adding this code in mail class do you mean in the modules/email/email.php&#8221;?</p>
<p>Thx a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://redinkdesign.co/blarg/simple-sugarcrm-e-mail-wrapper/#comment-64</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://redinkdesign.co/blarg/?p=12#comment-64</guid>
		<description>You can add this function where ever you please. It&#039;s just a function...just include it in your code somewhere.</description>
		<content:encoded><![CDATA[<p>You can add this function where ever you please. It&#8217;s just a function&#8230;just include it in your code somewhere.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

