<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Željko Filipin&#039;s Blog on Software and Testing &#187; E-mail</title>
	<atom:link href="http://zeljkofilipin.com/category/software/e-mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://zeljkofilipin.com</link>
	<description>Test like you do not need the money.</description>
	<lastBuildDate>Mon, 12 Jul 2010 15:07:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.6.3" -->
	<copyright>Copyright &#xA9; 2010 Željko Filipin&#039;s Blog on Software and Testing </copyright>
	<managingEditor>zeljko.filipin@gmail.com</managingEditor>
	<webMaster>zeljko.filipin@gmail.com</webMaster>
	<category>posts</category>
	<image>
		<url>http://zeljkofilipin.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>Željko Filipin&#039;s Blog on Software and Testing &#187; E-mail</title>
		<link>http://zeljkofilipin.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>Test like you do not need the money.</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &amp; Culture" />
	<itunes:author></itunes:author>
	<itunes:owner>
		<itunes:name></itunes:name>
		<itunes:email>zeljko.filipin@gmail.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://zeljkofilipin.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>Ruby Mail on CRuby, JRuby and IronRuby</title>
		<link>http://zeljkofilipin.com/2009/12/24/ruby-mail-on-cruby-jruby-and-ironruby/</link>
		<comments>http://zeljkofilipin.com/2009/12/24/ruby-mail-on-cruby-jruby-and-ironruby/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 15:01:41 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[E-mail]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/?p=887</guid>
		<description><![CDATA[Today I tried Mikel Lindsaar&#8217;s Mail gem on CRuby, JRuby and IronRuby. Installation of each Ruby version and Mail gem was really easy so I will not describe it here. What interested me was how fast was Mail on each Ruby implementation. I have created a simple mail and saved it as 1.eml. Date: Thu, [...]]]></description>
			<content:encoded><![CDATA[<p>Today I tried Mikel Lindsaar&#8217;s <a href="http://github.com/mikel/mail">Mail</a> gem on <a href="http://www.ruby-lang.org/en/">CRuby</a>, <a href="http://jruby.org/">JRuby</a> and <a href="http://www.ironruby.net/">IronRuby</a>.</p>
<p>Installation of each Ruby version and Mail gem was really easy so I will not describe it here. What interested me was how fast was Mail on each Ruby implementation.</p>
<p>I have created a simple mail and saved it as <code>1.eml</code>.</p>
<pre class="brush: plain;">
Date: Thu, 24 Dec 2009 14:37:34 Central European Standard Time
From: from@test.com
To: to@test.com
Message-ID: &lt;4b336e9e762a0_a1014263a4689d3@2003-ie7.mail&gt;
Subject: This is a test email
Mime-Version: 1.0
Content-Type: text/plain;
	charset=&quot;US-ASCII&quot;;
Content-Transfer-Encoding: 7bit

Some text for mail body
</pre>
<p>This script will read the file, display subject and time elapsed (in seconds).</p>
<pre class="brush: ruby;">
time = Time.now
require &quot;rubygems&quot;
require &quot;mail&quot;
mail = Mail.read(&quot;1.eml&quot;)
puts mail.subject.to_s
puts Time.now - time
</pre>
<p>I have executed the script three times for each Ruby implementation. It looks to me that CRuby and JRuby are similar in speed, and IronRuby is way slower.</p>
<table border="1">
<tbody>
<tr>
<th>Test Run</th>
<th>CRuby</th>
<th>JRuby</th>
<th>IronRuby</th>
</tr>
<tr>
<td>1</td>
<td>2.594</td>
<td>3.0</td>
<td>9.8125</td>
</tr>
<tr>
<td>2</td>
<td>2.109</td>
<td>2.016</td>
<td>7.796875</td>
</tr>
<tr>
<td>3</td>
<td>2.11</td>
<td>2.0</td>
<td>7.6875</td>
</tr>
</tbody>
</table>
<table>
<h2>Environment</h2>
<p>Tests were run in VMware Fusion 2.0.6 virtual machine, 512 MB RAM, Microsoft Windows Sever 2003 R2 (Standard Edition, Service pack 2).<br />
Host machine is MacBook Pro, 2.4 GHz Intel Core 2 Duo, Mac OS X 10.6.2, 4 GB RAM.</p>
<pre class="brush: bash;">
&gt;ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

&gt;jruby -v
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) Client VM 1.6.0_10) [x86-java]

&gt;ir -v
IronRuby 0.9.3.0 on .NET 2.0.0.0
</pre>
<p>Mail version 1.3.4 on all platforms.</table>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2009/12/24/ruby-mail-on-cruby-jruby-and-ironruby/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>TMail 1.1.0 Gem Released</title>
		<link>http://zeljkofilipin.com/2007/10/31/tmail-110-gem-released/</link>
		<comments>http://zeljkofilipin.com/2007/10/31/tmail-110-gem-released/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 07:00:53 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[E-mail]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/10/31/tmail-110-gem-released/</guid>
		<description><![CDATA[I have been using TMail for testing e-mail functionality of web application that I test for a long time. But, development of that library stopped at 2004. Today I found out that it is again in development. Take a look at it&#8217;s web site and RubyForge project site.]]></description>
			<content:encoded><![CDATA[<p><a href='http://tmail.rubyforge.org/' title='stamp-sm.jpg'><img src='/wp-content/uploads/2007/10/stamp-sm.jpg' alt='stamp-sm.jpg' /></a></p>
<p>I have been using TMail for testing e-mail functionality of web application that I test <a href="http://zeljkofilipin.com/2006/10/12/test-if-application-sends-correct-e-mails/">for a long time</a>. But, development of that library stopped at 2004. Today I found out that it is again in development. Take a look at it&#8217;s <a href="http://tmail.rubyforge.org/">web site</a> and <a href="http://rubyforge.org/projects/tmail/">RubyForge project site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2007/10/31/tmail-110-gem-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooting SMTP Issues with Telnet</title>
		<link>http://zeljkofilipin.com/2007/10/15/troubleshooting-smtp-issues-with-telnet/</link>
		<comments>http://zeljkofilipin.com/2007/10/15/troubleshooting-smtp-issues-with-telnet/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 07:00:39 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[E-mail]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/10/15/troubleshooting-smtp-issues-with-telnet/</guid>
		<description><![CDATA[I have really bad memory. I have to write this down. I just know I will forget it, but need it later. I had to find out why one user did not receive any mail from us. I tried the usual things, but all looked fine. My developer suggested to troubleshoot it with telnet. I [...]]]></description>
			<content:encoded><![CDATA[<p>I have really bad memory. I have to write this down. I just know I will forget it, but need it later.</p>
<p>I had to find out why one user did not receive any mail from us. I tried the usual things, but all looked fine. <a href="http://edge4dev.wordpress.com/">My developer</a> suggested to troubleshoot it with telnet. I found good article about <a href="http://www.novell.com/coolsolutions/trench/9879.html">troubleshooting SMTP issues</a>. What I did:</p>
<ul>
<li>open command prompt</li>
<li>find server<code><br />
>nslookup -querytype=MX [domain]<br />
...<br />
Non-authoritative answer:<br />
[domain] MX preference = [integer], mail exchanger = [subdomain].[domain]<br />
...<br />
</code>
</li>
<li>connect to that machine with telnet<code><br />
>telnet [subdomain].[domain] 25<br />
</code>
</li>
<li>
good<br />
<code>220 SMTP Proxy Server Ready</code>
</li>
<li>
not so good<br />
<code>554 Transaction Failed Listed in connection control deny list</code>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2007/10/15/troubleshooting-smtp-issues-with-telnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing E-mail: The Code</title>
		<link>http://zeljkofilipin.com/2007/02/07/testing-e-mail-the-code/</link>
		<comments>http://zeljkofilipin.com/2007/02/07/testing-e-mail-the-code/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 16:12:17 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[E-mail]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/02/07/testing-e-mail-the-code/</guid>
		<description><![CDATA[Lately I have been testing e-mail functionality of web application. This is the fifth post about that experience. Last week I wrote about lessons learned. I have written a little framework that helps me with testing e-mail. To use it, you will have to install Ruby, Tmail and SMTP server. Then download mail.zip (2,20 KB) [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been testing e-mail functionality of web application. This is the fifth post about that experience. Last week I wrote about <a href="http://zeljkofilipin.com/2007/01/30/testing-e-mail-lessons-learned/">lessons learned</a>.</p>
<p>I have written a little framework that helps me with testing e-mail.</p>
<p>To use it, you will have to install <a href="http://www.ruby-lang.org/en/downloads/">Ruby</a>, <a href="http://zeljkofilipin.com/2006/10/12/test-if-application-sends-correct-e-mails/">Tmail</a> and <a href="http://zeljkofilipin.com/2007/01/17/testing-e-mail-install-smtp-server/">SMTP server</a>.</p>
<p>Then download <a href='http://zeljkofilipin.com/wp-content/uploads/2007/02/mail.zip' title='mail.zip' onclick="javascript:urchinTracker ('/mail_zip'); ">mail.zip</a> (2,20 KB) and extract it. No installation required. There are even some unit tests (unit_tests.rb) and example code (usage.rb).</p>
<p>Send mail.</p>
<pre class="brush: ruby;">
SendMail.new(
  &quot;user@domain&quot;,
  &quot;application@domain&quot;,
  &quot;title&quot;,
  &quot;body&quot;).send
</pre>
<p>Check if application sent mail that you have expected.</p>
<pre class="brush: ruby;">
Mail.received?(
  [Mail.new(
    &quot;application@domain&quot;,
    &quot;user@domain&quot;,
    &quot;title&quot;)])
</pre>
<p>For now, mail that is sent can only contain from, to, subject and body. While receiving, I only check from, to and subject.</p>
<p>This is code that I am really using every day.</p>
<p>Please understand that I am a tester, not a developer, and I know that this code could be better. Feel free to improve it. Post bug reports and your comments here.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2007/02/07/testing-e-mail-the-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing E-mail: Lessons Learned</title>
		<link>http://zeljkofilipin.com/2007/01/30/testing-e-mail-lessons-learned/</link>
		<comments>http://zeljkofilipin.com/2007/01/30/testing-e-mail-lessons-learned/#comments</comments>
		<pubDate>Tue, 30 Jan 2007 15:58:51 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[E-mail]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/01/30/testing-e-mail-lessons-learned/</guid>
		<description><![CDATA[Lately I have been testing e-mail functionality of web application. This is the fourth post about that experience. Last week I wrote about tools I use for e-mail testing. I suggest that you start with little steps, and I mean really little steps. I assume that you have a test suite that tests web interface [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been testing e-mail functionality of web application. This is the fourth post about that experience. Last week I wrote about <a href="http://zeljkofilipin.com/2007/01/22/testing-e-mail-tools/">tools I use for e-mail testing</a>.</p>
<p>I suggest that you start with little steps, and I mean really little steps.</p>
<p>I assume that you have a test suite that tests web interface of your application. Some tests cause e-mails to be sent. But, until now, you have ignored that e-mails.</p>
<p>First, check if your application sends correct number of mails (see, really little steps). For example, if you are testing forum application, after start a discussion test is performed, check if every member of forum gets e-mail (depending on each member&#8217;s settings).</p>
<p>Then, after you have checked number of e-mails after all your tests, start checking if e-mail headers (from, to, subject) are correct for every mail that is sent. After that is done, start checking body, and then attachments.</p>
<p>I think it is better to test only some properties of e-mail but for larger number of e-mails, than testing all properties of e-mail, but for small number of e-mails.</p>
<p>Of course, this is only my advice based on my recent experience. Adjust your tests to your context.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2007/01/30/testing-e-mail-lessons-learned/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Testing E-mail: Tools</title>
		<link>http://zeljkofilipin.com/2007/01/22/testing-e-mail-tools/</link>
		<comments>http://zeljkofilipin.com/2007/01/22/testing-e-mail-tools/#comments</comments>
		<pubDate>Mon, 22 Jan 2007 17:09:28 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[E-mail]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/01/22/testing-e-mail-tools/</guid>
		<description><![CDATA[Lately I have been testing e-mail functionality of one application. In the beginning I though that I would write two or three posts about that experience. Now I think there will be more, but not much more. I prefer more shorter articles that two or three longer ones. I am all about little steps, as [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been testing e-mail functionality of one application. In the beginning I though that I would write two or three posts about that experience. Now I think there will be more, but not much more. I prefer more shorter articles that two or three longer ones. I am all about little steps, as you will shortly see.</p>
<p>This is the third article. Last week I wrote a little <a href="http://zeljkofilipin.com/2007/01/18/testing-e-mail-introduction/">introduction</a> and <a href="http://zeljkofilipin.com/2007/01/17/testing-e-mail-install-smtp-server/">how to install SMTP server</a>.</p>
<p>As I wrote the <a href="http://zeljkofilipin.com/2006/10/12/test-if-application-sends-correct-e-mails/">last year</a>, when testing e-mail, I am using <a href="http://www.ruby-lang.org/en/">Ruby</a> and this Ruby libraries:</p>
<ul>
<li>receive e-mail &#8211; <a href="http://www.ruby-doc.org/stdlib/libdoc/net/pop/rdoc/index.html">Net::POP3</a></li>
<li>send e-mail &#8211; <a href="http://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/index.html">Net::SMTP</a></li>
<li>create (before sending) and parse e-mail (after receiving) &#8211; <a href="http://i.loveruby.net/en/projects/tmail/">TMail</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2007/01/22/testing-e-mail-tools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Testing E-mail: Introduction</title>
		<link>http://zeljkofilipin.com/2007/01/18/testing-e-mail-introduction/</link>
		<comments>http://zeljkofilipin.com/2007/01/18/testing-e-mail-introduction/#comments</comments>
		<pubDate>Thu, 18 Jan 2007 15:47:56 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[E-mail]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/01/18/testing-e-mail-introduction/</guid>
		<description><![CDATA[Lately I have been testing e-mail functionality of one application. I will post my experience in two or three articles. This is the second one. Yesterday I blogged about how to install SMTP server. Testing is lots of fun. You do something, see what your application does and decide if it is correct behaviour. Testing [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been testing e-mail functionality of one application. I will post my experience in two or three articles. This is the second one. Yesterday I blogged about <a href="http://zeljkofilipin.com/2007/01/17/testing-e-mail-install-smtp-server/">how to install SMTP server</a>.</p>
<p>Testing is lots of fun. You do something, see what your application does and decide if it is correct behaviour.</p>
<p>Testing e-mail functionality of web applications is lots of fun, too. Also, it can be very time consuming.</p>
<p>Say, for example, you start a discussion at a forum. After discussion is started, forum members receive e-mail saying that new message is started. You could get the same e-mail, or just a confirmation e-mail saying that your contribution was successful. Some members maybe do not receive e-mails immediately after discussion is added, but receive a digest. Every 5, 10, 20 messages; daily, weekly, monthly digest. Some decided that they do not want any e-mail notification.</p>
<p>Another functionality of that forum could be that it receives e-mail. When member of forum sends an e-mail to forums e-mail address, discussion is started, it is visible at web interface, and members of forum receive e-mail notification, regarding of their preferences.</p>
<p>You can test all that. The boring part is waiting&#8230; and waiting&#8230; more waiting&#8230; and some more waiting. You get the point.</p>
<p>If you have Gmail account, you can use it for testing. If you have Gmail address username@gmail.com, just add +something between username and @gmail.com. Like this username+something@gmail.com. Anything you sent to that address will end up in your inbox. That way you can use one account for multiple users.</p>
<p>I would recommend that just for quick test. In my experience, sent e-mail will be delivered somewhere between a few seconds and a few hours. Rarely, even a few days. And the waiting part was really a problem to me.</p>
<p>There is a quicker way:</p>
<ul>
<li>Sending e-mail: <a href="http://zeljkofilipin.com/2007/01/17/testing-e-mail-install-smtp-server/">install SMTP Server</a> at your machine.</li>
<li>Receiving e-mail (manual): set up application in a way that all mail is delivered to a folder at the same server were web application is, so you can quickly check it (no delays).</li>
<li>Receiving e-mail (automated): set up POP3 server that will get all mail from that folder.</li>
</ul>
<p>I do not know how to do that set up, I was lucky enough to have a <a href="http://edge4dev.wordpress.com/">developer</a> who did it for me. <img src='http://zeljkofilipin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I will provide more details on automated testing of e-mail functionality in the next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2007/01/18/testing-e-mail-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing E-mail: Install SMTP Server</title>
		<link>http://zeljkofilipin.com/2007/01/17/testing-e-mail-install-smtp-server/</link>
		<comments>http://zeljkofilipin.com/2007/01/17/testing-e-mail-install-smtp-server/#comments</comments>
		<pubDate>Wed, 17 Jan 2007 16:58:11 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[E-mail]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/01/17/testing-e-mail-install-smtp-server/</guid>
		<description><![CDATA[I will be writing about testing e-mail functionality of web applications in the next post or two. If you are serious about testing e-mail functionality, the first step is to install SMTP server at your machine. This is tested on Windows XP Professional, service pack 2. You will need Windows operating system CD. Make sure [...]]]></description>
			<content:encoded><![CDATA[<p>I will be writing about testing e-mail functionality of web applications in the next post or two. If you are serious about testing e-mail functionality, the first step is to install SMTP server at your machine. This is tested on Windows XP Professional, service pack 2. You will need Windows operating system CD.</p>
<p>Make sure you are logged in as administrator, or start Add or Remove Programs as administrator:</p>
<ul>
<li>go to Control Panel</li>
<li>highlight Add or Remove Programs</li>
<li>hold Shift key at keyboard</li>
<li>press right mouse key</li>
<li>select Run as&#8230;</li>
<li>select administrator account</li>
<li>enter password if necessary</li>
<li>press button OK</li>
</ul>
<p>At Add or Remove Programs:</p>
<ul>
<li>click Add/Remove Windows Components</li>
<li>select Internet Information Services (IIS)</li>
<li>click Details&#8230;</li>
<li>check SMTP service check box</li>
<li>Common Files, Internet Information Services Snap-in and World Wide Web Service will automatically select</li>
<li>do not deselect anything</li>
<li>finish installation</li>
<li>you will be prompted to insert Windows operating system CD</li>
</ul>
<p>I am using Ruby&#8217;s <a href="http://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/index.html">Net::SMTP</a> library for sending e-mail. I tried to send an e-mail and got this exception:</p>
<p><code>Exception: 550 5.7.1 Unable to relay for community@site</code></p>
<p>You need to change a setting or two:</p>
<ul>
<li>go to Internet Information Services (in Administrative Tools)</li>
<li>right click Default SMTP Virtual Server</li>
<li>click Properties</li>
<li>select Access tab (second from the left)</li>
<li>click button Relay&#8230; (bottom right)</li>
<li>select Only the list below radio button</li>
<li>click button Add&#8230;</li>
<li>add 127.0.0.1</li>
</ul>
<p>Many thanks to <a href="http://edge4dev.wordpress.com/">my developer</a> who helped me to install and adjust my SMTP server.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2007/01/17/testing-e-mail-install-smtp-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Test If Application Sends Correct E-mails</title>
		<link>http://zeljkofilipin.com/2006/10/12/test-if-application-sends-correct-e-mails/</link>
		<comments>http://zeljkofilipin.com/2006/10/12/test-if-application-sends-correct-e-mails/#comments</comments>
		<pubDate>Thu, 12 Oct 2006 19:09:54 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[E-mail]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/?p=39</guid>
		<description><![CDATA[Interesting question appeared today at wtr-general mailing list. my application has sent an email to outlook. i want watir to open outlook, open the mail and get the mail data like from text and so on. I also have to test my application to see if it sends correct e-mails. So I knew the answer. [...]]]></description>
			<content:encoded><![CDATA[<p>Interesting question appeared today at <a href="http://www.mail-archive.com/wtr-general%40rubyforge.org/">wtr-general</a> mailing list.</p>
<blockquote><p>my application has sent an email to outlook. i want watir to open outlook, open the mail and get the mail data like from text and so on.</p></blockquote>
<p>I also have to test my application to see if it sends correct e-mails. So I knew the answer.</p>
<blockquote><p>You do not have to open Outlook to see your mail. You can read you e-mail from ruby.</p>
<p>- receive e-mail &#8211; <a href="http://www.ruby-doc.org/stdlib/libdoc/net/pop/rdoc/index.html">Net::POP3</a><br />
- send e-mail &#8211; <a href="http://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/index.html">Net::SMTP</a><br />
- create (before sending) and parse e-mail (from file, after receiving) &#8211; <a href="http://i.loveruby.net/en/projects/tmail/">TMail</a></p>
<p>Net::POP3 and Net::SMTP are included in Ruby. TMail needs installation. I had a problem with TMail installation, and I contacted author. He recommended this procedure, and now it works.</p>
<p><code>ruby setup.rb config --without-ext<br />
ruby setup.rb setup<br />
ruby setup.rb install</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2006/10/12/test-if-application-sends-correct-e-mails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
