<?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>Emeryville California &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/emeryville-california/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>Send Mail with Zend Framework</title>
		<link>/2010/03/25/send-mail-with-zend-framework/</link>
		<comments>/2010/03/25/send-mail-with-zend-framework/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:08:37 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Cross-platform software]]></category>
		<category><![CDATA[default transport protocol]]></category>
		<category><![CDATA[Emeryville California]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[Mail transfer agents]]></category>
		<category><![CDATA[PHP programming language]]></category>
		<category><![CDATA[Sendmail]]></category>
		<category><![CDATA[System software]]></category>
		<category><![CDATA[transport protocol]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">/?p=1389</guid>
		<description><![CDATA[Simple, but Doesn&#8217;t Work! It may sound strange, because all this is quite well documented in the Zend Framework documentation. Indeed it&#8217;s very very simple and all is done only by few lines of code. $mail = new Zend_Mail(); $mail-&#62;setFrom('sender@example.com'); $mail-&#62;setBodyHtml('some message - it may be html formatted text'); $mail-&#62;addTo('recipient@example.com', 'recipient'); $mail-&#62;setSubject('subject'); $mail-&#62;send(); Even it &#8230; <a href="/2010/03/25/send-mail-with-zend-framework/" class="more-link">Continue reading <span class="screen-reader-text">Send Mail with Zend Framework</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/07/17/send-html-mails-with-zend_mail/" rel="bookmark" title="Send Html Mails with Zend_Mail">Send Html Mails with Zend_Mail </a></li>
<li><a href="/2010/07/18/zend_mail-with-gmail/" rel="bookmark" title="Zend_Mail with GMail">Zend_Mail with GMail </a></li>
<li><a href="/2010/04/07/upload-a-file-with-zend-framework/" rel="bookmark" title="Upload a File with Zend Framework">Upload a File with Zend Framework </a></li>
<li><a href="/2010/01/25/using-zend-framework-validators-zend_validate_db_recordexists/" rel="bookmark" title="Using Zend Framework validators &#8211; Zend_Validate_Db_RecordExists">Using Zend Framework validators &#8211; Zend_Validate_Db_RecordExists </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>Simple, but Doesn&#8217;t Work!</h2>
<p>It may sound strange, because all this is quite well documented in the <a title="Zend Framework" href="http://framework.zend.com/" target="_blank">Zend Framework</a> documentation. Indeed it&#8217;s very very simple and all is done only by few lines of code.</p>
<pre lang="php" escaped="true">$mail = new Zend_Mail();
$mail-&gt;setFrom('sender@example.com');
$mail-&gt;setBodyHtml('some message - it may be html formatted text');
$mail-&gt;addTo('recipient@example.com', 'recipient');
$mail-&gt;setSubject('subject');
$mail-&gt;send();
</pre>
<p>Even it look simple though, it may not work on your localhost while you&#8217;re trying to make it work! Because you&#8217;ve to have sendmail setup. And in Zend Framework sendmail is the default transport protocol for sending mails.</p>
<h2>What You Have to Do to Make it Work?</h2>
<p>Actually you&#8217;ve simply to add a transport protocol, just like that:</p>
<pre lang="php" escaped="true">$tr = new Zend_Mail_Transport_Smtp('smtp.example.com',
                    array('auth' =&gt; 'login',
                             'username' =&gt; 'username',
                             'password' =&gt; 'password'));
Zend_Mail::setDefaultTransport($tr);
</pre>
<h2>Where Did I Get These?</h2>
<p>Well look at your favorite mail account you probably use every day. It may be hosted in GMail or wherever, but there are some configurations you have to port under Zend&#8217;s code and everything will be just fine until you develop the app!</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/07/17/send-html-mails-with-zend_mail/" rel="bookmark" title="Send Html Mails with Zend_Mail">Send Html Mails with Zend_Mail </a></li>
<li><a href="/2010/07/18/zend_mail-with-gmail/" rel="bookmark" title="Zend_Mail with GMail">Zend_Mail with GMail </a></li>
<li><a href="/2010/04/07/upload-a-file-with-zend-framework/" rel="bookmark" title="Upload a File with Zend Framework">Upload a File with Zend Framework </a></li>
<li><a href="/2010/01/25/using-zend-framework-validators-zend_validate_db_recordexists/" rel="bookmark" title="Using Zend Framework validators &#8211; Zend_Validate_Db_RecordExists">Using Zend Framework validators &#8211; Zend_Validate_Db_RecordExists </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/03/25/send-mail-with-zend-framework/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
