<?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>Spamming &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/spamming/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 Html Mails with Zend_Mail</title>
		<link>/2010/07/17/send-html-mails-with-zend_mail/</link>
		<comments>/2010/07/17/send-html-mails-with-zend_mail/#respond</comments>
		<pubDate>Sat, 17 Jul 2010 11:31:47 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[E-mail]]></category>
		<category><![CDATA[Form]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Spamming]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[web system]]></category>
		<category><![CDATA[World Wide Web]]></category>

		<guid isPermaLink="false">/?p=1815</guid>
		<description><![CDATA[Typically you&#8217;d never like to send a non-html formatted mail from your web system. It&#8217;s ugly and it&#8217;s difficult to read. Instead of sending pure text, you&#8217;d like to add some images and styles. The way you can do it with Zend_Mail is simple enough. Replace the setBody method with setBodyHtml. Isn&#8217;t that natural? // &#8230; <a href="/2010/07/17/send-html-mails-with-zend_mail/" class="more-link">Continue reading <span class="screen-reader-text">Send Html Mails with Zend_Mail</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/03/25/send-mail-with-zend-framework/" rel="bookmark" title="Send Mail with Zend Framework">Send Mail with Zend Framework </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/06/28/send-authenticated-post-request-with-zend_http_client/" rel="bookmark" title="Send Authenticated POST Request with Zend_Http_Client">Send Authenticated POST Request with Zend_Http_Client </a></li>
<li><a href="/2010/01/12/faster-html-why-not/" rel="bookmark" title="Faster HTML! Why not?">Faster HTML! Why not? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p><a href="/wp-content/uploads/2010/07/mails.jpg"><img src="/wp-content/uploads/2010/07/mails.jpg" alt="Zend_Mail" title="mails" width="430" height="276" class="aligncenter size-full wp-image-1822" srcset="/wp-content/uploads/2010/07/mails.jpg 430w, /wp-content/uploads/2010/07/mails-300x192.jpg 300w" sizes="(max-width: 430px) 100vw, 430px" /></a><br />
Typically you&#8217;d never like to send a non-html formatted mail from your web system. It&#8217;s ugly and it&#8217;s difficult to read. Instead of sending pure text, you&#8217;d like to add some images and styles. The way you can do it with Zend_Mail is simple enough. Replace the setBody method with setBodyHtml. Isn&#8217;t that natural?</p>
<pre lang="php">
// before
$mail = new Zend_Mail('utf-8');
$mail->setFrom('sender@example.com', 'Sender Name');
$mail->setBody('message in Html');
$mail->addTo('recipient@example.com', 'Recepient Name');
$mail->setSubject('Subject');
$mail->send();
</pre>
<pre lang="php">
// after
$mail = new Zend_Mail('utf-8');
$mail->setFrom('sender@example.com', 'Sender Name');
$mail->setBodyHtml('message in Html');
$mail->addTo('recipient@example.com', 'Recepient Name');
$mail->setSubject('Subject');
$mail->send();
</pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/03/25/send-mail-with-zend-framework/" rel="bookmark" title="Send Mail with Zend Framework">Send Mail with Zend Framework </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/06/28/send-authenticated-post-request-with-zend_http_client/" rel="bookmark" title="Send Authenticated POST Request with Zend_Http_Client">Send Authenticated POST Request with Zend_Http_Client </a></li>
<li><a href="/2010/01/12/faster-html-why-not/" rel="bookmark" title="Faster HTML! Why not?">Faster HTML! Why not? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/07/17/send-html-mails-with-zend_mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
