<?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: Sending email using gmail&#8217;s smtp with Zend Framework</title>
	<atom:link href="http://blog.ryantan.net/2010/01/sending-email-using-gmails-smtp-with-zend-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ryantan.net/2010/01/sending-email-using-gmails-smtp-with-zend-framework/</link>
	<description>Exploring new media as art and science</description>
	<lastBuildDate>Tue, 31 Jan 2012 21:02:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: jayakumar</title>
		<link>http://blog.ryantan.net/2010/01/sending-email-using-gmails-smtp-with-zend-framework/comment-page-1/#comment-47331</link>
		<dc:creator>jayakumar</dc:creator>
		<pubDate>Thu, 22 Sep 2011 05:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ryantan.net/?p=558#comment-47331</guid>
		<description>Hi ryan please send complete source code regarding sending mail.</description>
		<content:encoded><![CDATA[<p>Hi ryan please send complete source code regarding sending mail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://blog.ryantan.net/2010/01/sending-email-using-gmails-smtp-with-zend-framework/comment-page-1/#comment-47209</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Wed, 21 Sep 2011 06:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ryantan.net/?p=558#comment-47209</guid>
		<description>Yes this is for the Zend Framework</description>
		<content:encoded><![CDATA[<p>Yes this is for the Zend Framework</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jayakumar</title>
		<link>http://blog.ryantan.net/2010/01/sending-email-using-gmails-smtp-with-zend-framework/comment-page-1/#comment-47208</link>
		<dc:creator>jayakumar</dc:creator>
		<pubDate>Wed, 21 Sep 2011 06:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ryantan.net/?p=558#comment-47208</guid>
		<description>hi this is from zend</description>
		<content:encoded><![CDATA[<p>hi this is from zend</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://blog.ryantan.net/2010/01/sending-email-using-gmails-smtp-with-zend-framework/comment-page-1/#comment-8592</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Wed, 10 Nov 2010 02:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ryantan.net/?p=558#comment-8592</guid>
		<description>Hey emeraldjava, not sure if this is the most efficient way, but this is what I do usually: 1. Define the params in my application.ini, 2. load the params in bootlstrap, 3.read the params from Zend_Registry where I need them.

In application.ini:
&lt;code&gt;
; SMTP configuration
smtpConfig.ssl = &quot;tls&quot;
smtpConfig.port = &quot;587&quot;
smtpConfig.auth = &quot;login&quot;
smtpConfig.username = &quot;sender@domain.com&quot;
smtpConfig.password =  &quot;password&quot;
&lt;/code&gt;

Load it in my bootstrap:
&lt;code&gt;
    protected function _initConfig(){ 
         
        $config = new Zend_Config_Ini(APPLICATION_PATH . &#039;/configs/application.ini&#039;,APPLICATION_ENV);
		
        $registry = Zend_Registry::getInstance();
        $registry-&gt;set(&#039;config&#039;, $config);
        $registry-&gt;set(&#039;smtpConfig&#039;, $config-&gt;smtpConfig);

	...
	...

        return $config;
    }
&lt;/code&gt;


Then access it else where by getting it from Zend_Registry

&lt;code&gt;
$smtpConfig = Zend_Registry::get(&#039;smtpConfig&#039;);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hey emeraldjava, not sure if this is the most efficient way, but this is what I do usually: 1. Define the params in my application.ini, 2. load the params in bootlstrap, 3.read the params from Zend_Registry where I need them.</p>
<p>In application.ini:<br />
<code><br />
; SMTP configuration<br />
smtpConfig.ssl = "tls"<br />
smtpConfig.port = "587"<br />
smtpConfig.auth = "login"<br />
smtpConfig.username = "sender@domain.com"<br />
smtpConfig.password =  "password"<br />
</code></p>
<p>Load it in my bootstrap:<br />
<code><br />
    protected function _initConfig(){ </p>
<p>        $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini',APPLICATION_ENV);</p>
<p>        $registry = Zend_Registry::getInstance();<br />
        $registry-&gt;set('config', $config);<br />
        $registry-&gt;set('smtpConfig', $config-&gt;smtpConfig);</p>
<p>	...<br />
	...</p>
<p>        return $config;<br />
    }<br />
</code></p>
<p>Then access it else where by getting it from Zend_Registry</p>
<p><code><br />
$smtpConfig = Zend_Registry::get('smtpConfig');<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emeraldjava</title>
		<link>http://blog.ryantan.net/2010/01/sending-email-using-gmails-smtp-with-zend-framework/comment-page-1/#comment-8587</link>
		<dc:creator>emeraldjava</dc:creator>
		<pubDate>Tue, 09 Nov 2010 22:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ryantan.net/?p=558#comment-8587</guid>
		<description>Hey,
Had you any luck trying to load the smtp parameters from the zend application.ini file?</description>
		<content:encoded><![CDATA[<p>Hey,<br />
Had you any luck trying to load the smtp parameters from the zend application.ini file?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

