<?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>maSnun&#039;s logs &#187; email</title>
	<atom:link href="http://masnun.com/blog/tag/email/feed/" rel="self" type="application/rss+xml" />
	<link>http://masnun.com/blog</link>
	<description>Personal Blog of maSnun</description>
	<lastBuildDate>Sat, 24 Jul 2010 04:33:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>A PHP Mailer Class</title>
		<link>http://masnun.com/blog/2009/12/30/a-php-mailer-class/</link>
		<comments>http://masnun.com/blog/2009/12/30/a-php-mailer-class/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 10:01:20 +0000</pubDate>
		<dc:creator>masnun</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://masnun.com/?p=762</guid>
		<description><![CDATA[UPDATE: Added application of the basename() function to the attached filenames to get the filenames only. This php class lets you attach multiple files and send emails via Postfix without digging into the messy headers &#60;?php class Mailer &#123; function &#8230; <a href="http://masnun.com/blog/2009/12/30/a-php-mailer-class/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: </strong> Added application of the basename() function to the attached filenames to get the filenames only.</p>
<hr/>
<p>This php class lets you attach multiple files and send emails via Postfix without digging into the messy headers <img src='http://masnun.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">class</span> Mailer <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #000088;">$to</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$from</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$sub</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$msg</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$files</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">to</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$to</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">from</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$from</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sub</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$sub</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">msg</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$msg</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">files</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$files</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> attachFile<span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">files</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$file</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> setMessage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">msg</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$msg</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> setTo<span style="color: #009900;">&#40;</span><span style="color: #000088;">$to</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$to</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">to</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$to</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> setFrom<span style="color: #009900;">&#40;</span><span style="color: #000088;">$from</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$from</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">from</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$from</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> setSubject<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sub</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sub</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sub</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$sub</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> sendMail<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #000088;">$files</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">files</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// email fields: to, from, subject, and so on</span>
        <span style="color: #000088;">$to</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">to</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$from</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">from</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sub</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">msg</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000088;">$headers</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;From: <span style="color: #006699; font-weight: bold;">$from</span> &quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// boundary</span>
        <span style="color: #000088;">$semi_rand</span> <span style="color: #339933;">=</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$mime_boundary</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;==Multipart_Boundary_x<span style="color: #006699; font-weight: bold;">{$semi_rand}</span>x&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// headers for attachment</span>
        <span style="color: #000088;">$headers</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>MIME-Version: 1.0<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;Content-Type: multipart/mixed;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; boundary=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">{$mime_boundary}</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// multipart boundary</span>
        <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;This is a multi-part message in MIME format.<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;--<span style="color: #006699; font-weight: bold;">{$mime_boundary}</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;Content-Type: text/plain; charset=<span style="color: #000099; font-weight: bold;">\&quot;</span>iso-8859-1<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;Content-Transfer-Encoding: 7bit<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$message</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;--<span style="color: #006699; font-weight: bold;">{$mime_boundary}</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// preparing attachments</span>
        <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$x</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$x</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;rb&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span><span style="color: #990000;">filesize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">chunk_split</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">base64_encode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;Content-Type: {<span style="color: #000099; font-weight: bold;">\&quot;</span>application/octet-stream<span style="color: #000099; font-weight: bold;">\&quot;</span>};<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; name=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$files</span>[<span style="color: #006699; font-weight: bold;">$x</span>]<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
                    <span style="color: #0000ff;">&quot;Content-Disposition: attachment;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; filename=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">basename</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
                    <span style="color: #0000ff;">&quot;Content-Transfer-Encoding: base64<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$data</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$message</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;--<span style="color: #006699; font-weight: bold;">{$mime_boundary}</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// send</span>
&nbsp;
        <span style="color: #000088;">$ok</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">mail</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$to</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subject</span><span style="color: #339933;">,</span> <span style="color: #000088;">$message</span><span style="color: #339933;">,</span> <span style="color: #000088;">$headers</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$ok</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><strong>Example USE:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;mailer.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$m</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Mailer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$m</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setTo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;maSnun &lt;masnun@gmail.com&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$m</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setFrom</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;phpGeek &lt;masnun@leevio.com&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$m</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setSubject</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;A bunch of files&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$m</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setMessage</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Hello buddy! Files attached!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$m</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">attachFile</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;images/Screenshot.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$m</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sendMail</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Sent <span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;failed <span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Happy Mailing! <img src='http://masnun.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://masnun.com/blog/2009/12/30/a-php-mailer-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Python: Sending a bunch of images as email attachments</title>
		<link>http://masnun.com/blog/2009/12/29/python-sending-a-bunch-of-images-as-email-attachments/</link>
		<comments>http://masnun.com/blog/2009/12/29/python-sending-a-bunch-of-images-as-email-attachments/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 17:47:28 +0000</pubDate>
		<dc:creator>masnun</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://masnun.com/?p=760</guid>
		<description><![CDATA[Python is just beautiful! In my last post I mentioned how you can setup an email server. Now, here&#8217;s the code I use to send a bunch of images as attachments with my outgoing emails. This code snippet was taken &#8230; <a href="http://masnun.com/blog/2009/12/29/python-sending-a-bunch-of-images-as-email-attachments/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Python is just beautiful! In my last post I mentioned how you can setup an email server. Now, here&#8217;s the code I use to send a bunch of images as attachments with my outgoing emails. This code snippet was taken from the Python manual. But unfortunately the code was not complete. So, I had to hack through it and configure it to suit my needs.</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/python</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">smtplib</span>,<span style="color: #dc143c;">glob</span>,<span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">email</span>.<span style="color: black;">mime</span>.<span style="color: black;">image</span> <span style="color: #ff7700;font-weight:bold;">import</span> MIMEImage
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">email</span>.<span style="color: black;">mime</span>.<span style="color: black;">multipart</span> <span style="color: #ff7700;font-weight:bold;">import</span> MIMEMultipart
&nbsp;
COMMASPACE = <span style="color: #483d8b;">', '</span>
&nbsp;
&nbsp;
msg = MIMEMultipart<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
msg<span style="color: black;">&#91;</span><span style="color: #483d8b;">'Subject'</span><span style="color: black;">&#93;</span> = <span style="color: #483d8b;">'Our family reunion'</span>
me = <span style="color: #483d8b;">&quot;masnun@leevio.com&quot;</span>
family = <span style="color: black;">&#91;</span><span style="color: #483d8b;">'masnun@gmail.com'</span>,<span style="color: #483d8b;">'jotil21@gmail.com'</span><span style="color: black;">&#93;</span>
msg<span style="color: black;">&#91;</span><span style="color: #483d8b;">'From'</span><span style="color: black;">&#93;</span> = me
msg<span style="color: black;">&#91;</span><span style="color: #483d8b;">'To'</span><span style="color: black;">&#93;</span> = COMMASPACE.<span style="color: black;">join</span><span style="color: black;">&#40;</span>family<span style="color: black;">&#41;</span>
msg.<span style="color: black;">preamble</span> = <span style="color: #483d8b;">'Our family reunion'</span>
&nbsp;
path = <span style="color: #483d8b;">&quot;images/&quot;</span>
pngfiles = <span style="color: #dc143c;">glob</span>.<span style="color: #dc143c;">glob</span><span style="color: black;">&#40;</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>path, <span style="color: #483d8b;">&quot;*.png&quot;</span><span style="color: black;">&#41;</span> <span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">for</span> <span style="color: #008000;">file</span> <span style="color: #ff7700;font-weight:bold;">in</span> pngfiles:
    <span style="color: #808080; font-style: italic;"># Open the files in binary mode.  Let the MIMEImage class automatically</span>
    <span style="color: #808080; font-style: italic;"># guess the specific image type.</span>
    fp = <span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #008000;">file</span>, <span style="color: #483d8b;">'rb'</span><span style="color: black;">&#41;</span>
    img = MIMEImage<span style="color: black;">&#40;</span>fp.<span style="color: black;">read</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
    fp.<span style="color: black;">close</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
    msg.<span style="color: black;">attach</span><span style="color: black;">&#40;</span>img<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Send the email via our own SMTP server.</span>
s = <span style="color: #dc143c;">smtplib</span>.<span style="color: black;">SMTP</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;localhost&quot;</span><span style="color: black;">&#41;</span>
s.<span style="color: black;">sendmail</span><span style="color: black;">&#40;</span>me, family, msg.<span style="color: black;">as_string</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
s.<span style="color: black;">quit</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>It currently reads the &#8220;images&#8221; directory and mails out the png files. But if you look at the codes, you&#8217;ll see that the codes can be easily changed to send other files as well <img src='http://masnun.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I love Python!</p>
<p>PS: I am looking for a good way to attach files using PHP. The way I found was messy! I know the huge PHP community certainly has something better to offer. I will post it as soon as I find it <img src='http://masnun.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://masnun.com/blog/2009/12/29/python-sending-a-bunch-of-images-as-email-attachments/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting Up Email Server on your PC</title>
		<link>http://masnun.com/blog/2009/12/29/setting-up-email-server-on-your-pc/</link>
		<comments>http://masnun.com/blog/2009/12/29/setting-up-email-server-on-your-pc/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 17:40:58 +0000</pubDate>
		<dc:creator>masnun</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://masnun.com/?p=758</guid>
		<description><![CDATA[If you setup an email server on your PC, you can easily send unlimited emails with a custom &#8220;From&#8221; address This is particularly helpful if you want to send emails programmatically for some reasons (I like to send unimportant emails &#8230; <a href="http://masnun.com/blog/2009/12/29/setting-up-email-server-on-your-pc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you setup an email server on your PC, you can easily send unlimited emails with a custom &#8220;From&#8221; address <img src='http://masnun.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  This is particularly helpful if you want to send emails programmatically for some reasons (I like to send unimportant emails and small attachments via Python).</p>
<p>To setup a mail server on Ubuntu, just install the &#8220;postfix&#8221; package:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> postfix</pre></div></div>

<p>Now you can send emails with php, python or even by typing codes on the terminal.</p>
<p>It was simple. Wasn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://masnun.com/blog/2009/12/29/setting-up-email-server-on-your-pc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The RIA Experience</title>
		<link>http://masnun.com/blog/2009/03/14/the-ria-experience/</link>
		<comments>http://masnun.com/blog/2009/03/14/the-ria-experience/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 12:24:32 +0000</pubDate>
		<dc:creator>masnun</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[free-services]]></category>

		<guid isPermaLink="false">http://masnun.com/2009/03/14/the-ria-experience/</guid>
		<description><![CDATA[I have already written about the new AOL Mail RIA. Now that I have upgraded my PC, I am now actively enjoying this super cool webmail. Many people might raise their eyebrows when I call it &#8220;super cool&#8221; given that &#8230; <a href="http://masnun.com/blog/2009/03/14/the-ria-experience/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have already written about the new AOL Mail RIA. Now that I have upgraded my PC, I am now actively enjoying this super cool webmail. Many people might raise their eyebrows when I call it &#8220;super cool&#8221; given that RIA has nothing except looks alone. Yes, it&#8217;s definitely true that RIA has only looks at the moment. But I am actively in touch with the product manager of AOL Mail RIA project discussing the present and future state of the webmail service. It&#8217;s quite clear from the intension of this guy that they want to surpass Gmail when it comes to free service.  I do believe that they can do that. The RIA service is still in Beta and new features are expected to come in this week.
</p>
<p><strong>So what the fuss is about this RIA thing?<br />
</strong></p>
<ul>
<li>RIA = Rich Internet Application.
</li>
<li>RIA uses Microsoft&#8217;s Silver Light technology to deliver highly interactive web content.
</li>
<li>You need to load the RIA application only once for every machine.  You will be able to log in lightning fast afterwards. This is a big win over other web mail services.
</li>
<li>The Interface is eye candy. Currently there are three themes.
</li>
<li>The search engine implements a &#8220;client side&#8221; search to perform really fast searches of the email headers.
</li>
<li>It works fine on my 5kbps internet connection.
</li>
<li>They have promised to consider conversation, labels and many other improvements over time.
</li>
</ul>
<p><strong>Things you won&#8217;t like:<br />
</strong></p>
<ul>
<li>The search engine only searches the headers of the email in the current folder. No searching in the message body. AOL has assured me that introducing the full email search is being given high priority on their current roadmap.
</li>
<li>You will miss conversation view if you&#8217;re a regular Gmail user. AOL says they are looking forward to adding it too.
</li>
<li>No labels. Promised to have a look into this.
</li>
<li>Incomplete settings ? No offense, they are still in beta.
</li>
<li>New tab won&#8217;t open in Firefox 2 ? Known bug to the AOL RIA team. They&#8217;re trying to implement a workaround.
</li>
</ul>
<p><strong>I made the Switch, YOU?<br />
</strong></p>
<p>I finally made the switch, by now it&#8217;s partial. I am going to keep both my Gmail and AOL Mail side by side. I can&#8217;t forward and transfer my emails from Gmail until I get conversation view in AOL mail. Otherwise, my inbox will be a mess. But I am using AOL as my primary contact address. My friend <a href="http://i-am-lv.blogspot.com">Alvee</a> has switched too. There are a good number of reasons to make a switch from Gmail to AOL. Here&#8217;s some of them:
</p>
<ul>
<li>Gmail&#8217;s storage is not unlimited. You can&#8217;t freely share files every now and then. Though now I am using only 2% of my Gmail storage, the number of inbound email messages has increased. I think it&#8217;s time I should go for an unlimited storage. I was ready to pay for unlimited storage. But even if you pay, Gmail doesn&#8217;t offer you unlimited storage. AOL gives you free on the other side.
</li>
<li>Ever visited <a href="http://gmail-is-too-creepy.com">http://gmail-is-too-creepy.com</a> ? I hardly care about what is written on that page yet, why should you have to bear confusion in mind if you can avoid it?
</li>
<li>AOL&#8217;s POP3 and IMAP config is very simple. At least 2 times simpler than Gmail.
</li>
<li>The RIA interface is thousands time better than Gmail v2. Loads faster too.
</li>
</ul>
<p>
 </p>
<p>Even after all these, I would say that AOL RIA still has a long way to go before they can be as popular as Gmail. But it doesn&#8217;t hurt to try a new service. Why don&#8217;t you join and have a go?
</p>
<p><strong>AOL Mail RIA: <a href="http://ria.aol.com"/></strong>http://ria.aol.com <span style="font-family:Wingdings">J</span>
	</p>
]]></content:encoded>
			<wfw:commentRss>http://masnun.com/blog/2009/03/14/the-ria-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The New AOL Experience</title>
		<link>http://masnun.com/blog/2009/03/04/the-new-aol-experience/</link>
		<comments>http://masnun.com/blog/2009/03/04/the-new-aol-experience/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 07:20:39 +0000</pubDate>
		<dc:creator>masnun</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[free-services]]></category>

		<guid isPermaLink="false">http://masnun.com/2009/03/04/the-new-aol-experience/</guid>
		<description><![CDATA[Before you start reading, I would like you to re-read the title and realise that I did mean to put a bit of emphasis on the word &#8220;new&#8221;. Yeah, I am going to narrate the experience I recently gained just &#8230; <a href="http://masnun.com/blog/2009/03/04/the-new-aol-experience/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Before you start reading, I would like you to re-read the title and realise that I did mean to put a bit of emphasis on the word &#8220;new&#8221;. Yeah, I am going to narrate the experience I recently gained just after my previous post on the &#8220;all new aol mail&#8221; was published.</p>
<p>I am not quite sure if my blog has yet been indexed by the giant search engines, still, here I am, got a mail from one of the product managers of the AOL Mail team who somehow found my previous post here. He wrote to me regarding my thoughts about the all new AOL Email. Eventually I told him that I had lost masnun@aol.com and this kind man promised to look into the fact. Guess what, he made another AOL staff find out the real reason behind the termination of my account. That&#8217;s not all, he also made that staff reserve &#8220;masnun@aol.in&#8221; for me. I was more than happy to get such a pleasant surprise gift from a stranger with whom I haven&#8217;t had a live chat yet, just a few emails those we exchanged remain the only links between us. I made the decision immediately then. I am going to keep an AOL account side by side with Gmail. People who are barking mad out there complaining about AOL Customer Care should try a bit to understand the significant difference between the &#8220;old aol&#8221; and the &#8220;new aol&#8221;.</p>
<p>This kind guy is a product manager of the Rich Internet Application (RIA) project of AOL that I haven&#8217;t yet tested but am dying to test given that the cool screen shots I saw was really eye-candy. RIA requires Microsoft&#8217;s SilverLight technology. I need to install the plugin. Unfortunately, I don&#8217;t yet have Win XP SP2. With my SP2-less XP, I can not test the product that many people believe, is going to be the future of email messaging. I am still to wait about a week to upgrade my PC before upgrading it&#8217;s softwares. But till then, I am using the standard version of AOL Mail.</p>
<p><b>Features I like:</b><br />
·········# The interface is nice.<br />
·········# The sidebar with plugins.<br />
·········# Integrated AIM.<br />
·········# Send your AIM presence in outgoing email messages.<br />
·········# Check Yahoo! Mail and Gmail from AOL Mail (Gmail plugin doesn&#8217;t work ATM, but I was told that they will work on it)<br />
·········# UNLIMITED STORAGE.<br />
·········# Free POP3 and IMAP support.<br />
·········# Reading Pane.<br />
·········# Themes.<br />
·········# Linking Screen Names provide you the opportunity to switch between accounts on the fly.<br />
·········# Nice Mobile Version.</p>
<p><b>Things I dislike:</b><br />
·········# Banner ads rotate over time even if you don&#8217;t move.<br />
·········# The rotating ads often cause problems to GUI.<br />
·········# Ads in Email footer.<br />
·········# Takes a bit speedy connection for the standard version. AOL needs to be faster.</p>
<p><b>Few Tips For Slow Connection Users:</b><br />
·········# Uncheck the option to automatically sign in to AIM.<br />
·········# Activate Reading pane. It&#8217;ll help you read messages without facing GUI problems because of the rotating ads.</p>
<p>These two actions helped me improve the performance of AOL Mail Standard for me.</p>
<p><u><b>LINKS:</b></u></p>
<blockquote>
<ul>
<li><a href="http://ria.aol.com" target="_blank">Try AOL Mail RIA</a></li>
<li><a href="http://ria.mail.aol.com" target="_blank">About AOL Mail RIA</a></li>
<li><a href="http://mail.aol.com" target="_blank">AOL Mail</a></li>
</ul>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://masnun.com/blog/2009/03/04/the-new-aol-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail&#039;s Storage Secret</title>
		<link>http://masnun.com/blog/2009/02/28/gmails-storage-secret/</link>
		<comments>http://masnun.com/blog/2009/02/28/gmails-storage-secret/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 12:25:09 +0000</pubDate>
		<dc:creator>masnun</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[free-services]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://masnun.com/2009/02/28/gmails-storage-secret/</guid>
		<description><![CDATA[How much storage does Google provide for every Gmail account? I know you can just visit the Gmail front page and quote the digits straightway. But have you ever wodered how that counter on gmail.com work? If you&#8217;re a web &#8230; <a href="http://masnun.com/blog/2009/02/28/gmails-storage-secret/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>How much storage does Google provide for every Gmail account? I know you can just visit the Gmail front page and quote the digits straightway. But have you ever wodered how that counter on gmail.com work? If you&#8217;re a web designer or a developer, the answer will automatically come to your mouth. It&#8217;s  javascript, updating the counter depending on your system&#8217;s time.</p>
<p>Gmail adds 4 bytes, that is 4e-3 kb and 4e-6 mb per second. The JavaScript just checks your system&#8217;s time and performs a calculation to determine the current quota for a gmail mailbox.</p>
<p>Here&#8217;s a test: While the counter is being displayed on your browser, change your PC&#8217;s time. Return to the counter and you&#8217;ll see what I have told you so far.</p>
<p>So, what does that mean? That means nothing but still it&#8217;s a critical reason for choosing Gmail over other webmails. Storage is the only thing that pushes Gmail behind AOL, Yahoo!  and others who provide unlimited storage for free. Google does not provide unlimited, but storage increases every second. It&#8217;s almost like having an unlimited storage.</p>
<blockquote><p>Gmail adds 4bytes per second to your mailbox. 1kb (1024bytes) every 256 seconds (4.26 minutes).  1 MB every 71 hours. </p></blockquote>
<p>Do you recieve more than 1MB emails every 3 days constantly ? Then you should buy additional storage if you want to continue using Gmail or choose another webmail service that provides better storage.</p>
<p>But, I believe most of us won&#8217;t cross that limit. And unless you have an alternative to quit Gmail, don&#8217;t leave it. They have free pop and imap, labels, integrated chat without flash, integrated video and voice chat, unlimited filters, cool mobile access and all those you might need to meet your emailing needs. Specially, I love Gmail because they don&#8217;t send ads at the bottom of my outgoing email messages and conversations save me a lot of time everyday. The only issue might be storage if you are a power user. In that case buy a google storage plan or create a AOL / Yahoo! account for storage. Forward your heavy messages to that account while saving the light messages inside Gmail.</p>
<p>PS. My friend says &#8220;Google knows their business. They want to make money by forcing people to upgrade storage after they have got used to the innovative service and felt relaxed about the storage believing that&#8217;d increase whenever they need.&#8221;. I don&#8217;t disagree. google knows their business, perhaps better than others. But that doesn&#8217;t hurt neither me, nor the millions of other Gmail fans. Still, it would be better if Gmail could get us rid of the storage &#8220;tension&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://masnun.com/blog/2009/02/28/gmails-storage-secret/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The All New AOL Mail</title>
		<link>http://masnun.com/blog/2009/02/27/the-all-new-aol-mail/</link>
		<comments>http://masnun.com/blog/2009/02/27/the-all-new-aol-mail/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 08:27:49 +0000</pubDate>
		<dc:creator>masnun</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://masnun.com/2009/02/27/the-all-new-aol-mail/</guid>
		<description><![CDATA[AOL has improved it&#8217;s email service finally. The service, though nothing good when compared to Google&#8217;s Gmail, is quite a cool one. The new interface is being powered by Microsoft&#8217;s SilverLight technology. The mailbox now resembles much to Yahoo! Mail. &#8230; <a href="http://masnun.com/blog/2009/02/27/the-all-new-aol-mail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>AOL has improved it&#8217;s email service finally. The service, though nothing good when compared to Google&#8217;s Gmail, is quite a cool one.<br />
The new interface is being powered by Microsoft&#8217;s SilverLight technology. The mailbox now resembles much to Yahoo! Mail. Integrated AIM and a few plugins alongside remains the only unique features of the all new AOL Mail.  The storage is now unlimited but the interface is ad flooded. And to add a bit more to the pain, the ads rotate time to time even if you remain stationary.</p>
<p>But the positive side is that AOL Mail can load and operate fairly well even if you&#8217;re using their standard version with a 5kbps internet connection like me. And that&#8217;s a great win over Gmail. I can not use Gmail&#8217;s latest (standard) version with this slow internet connection.</p>
<p>ICQ Mail and Goowy Inc has already migrated to AOL Mail. And now, AOL has introduced a new offer to it&#8217;s users. With TunoMe service you can choose an email address over a huge numbers of domains. I recently chose masnun@mcom.com from them. But this service is still limited to USA and Canada residents since it still is in beta.</p>
<p>Alongside the basic version, there is another &#8220;Accesible version&#8221;.</p>
<p>Like Gmail and unlike Yahoo! Mail, AOL mail has free IMAP and POP3 access.</p>
<p>There&#8217;s a nice mobile version as well.</p>
<p>But they give tagline ads on outgoing emails.</p>
<p>In a quick look, the all new AOL mail seems to be a mixture of Yahoo! Mail and Gmail. I am just testing how fine it works. They are still in beta but I believe they can do a good job if they extend their services to more and more countries.</p>
]]></content:encoded>
			<wfw:commentRss>http://masnun.com/blog/2009/02/27/the-all-new-aol-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DeshMail ::: Free Email Service</title>
		<link>http://masnun.com/blog/2007/02/20/deshmail-free-email-service/</link>
		<comments>http://masnun.com/blog/2007/02/20/deshmail-free-email-service/#comments</comments>
		<pubDate>Tue, 20 Feb 2007 14:21:00 +0000</pubDate>
		<dc:creator>masnun</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[free-services]]></category>

		<guid isPermaLink="false">http://masnun.com/2007/02/20/deshmail-free-email-service/</guid>
		<description><![CDATA[Deshmail.com is a Bangladeshi free email service which is the 1stBangla email service. It has pop port too. Just set the pop port to&#34;mail.deshmail.com&#34;. The home page address is www.deshmail.com andmind that if you don&#39;t add that &#34;www&#34;, you won&#39;t &#8230; <a href="http://masnun.com/blog/2007/02/20/deshmail-free-email-service/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Deshmail.com is a Bangladeshi free email service which is the 1st<br />Bangla email service. It has pop port too. Just set the pop port to<br />&quot;mail.deshmail.com&quot;. The home page address is <a href="http://www.deshmail.com">www.deshmail.com</a> and<br />mind that if you don&#39;t add that &quot;www&quot;, you won&#39;t be able to visit the<br />main page. They have problem with their domain&#39;s cName records. By the<br />way check this service out and remember that it is brought to you by<br />BangladeshInfo.com.The service was launched a few years ago but the UI<br />hasn&#39;t changed a bit!</p>
]]></content:encoded>
			<wfw:commentRss>http://masnun.com/blog/2007/02/20/deshmail-free-email-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>POP Accounts</title>
		<link>http://masnun.com/blog/2007/02/20/pop-accounts/</link>
		<comments>http://masnun.com/blog/2007/02/20/pop-accounts/#comments</comments>
		<pubDate>Tue, 20 Feb 2007 14:11:00 +0000</pubDate>
		<dc:creator>masnun</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[free-services]]></category>

		<guid isPermaLink="false">http://masnun.com/2007/02/20/pop-accounts/</guid>
		<description><![CDATA[POP stands for Post Office Protocol. With a POP supported emailaccount you can download your emails and read them offline.You canalso compose emails offline and send them on the fly.You can evendownload emails on cell phones that has email application &#8230; <a href="http://masnun.com/blog/2007/02/20/pop-accounts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>POP stands for Post Office Protocol. With a POP supported email<br />account you can download your emails and read them offline.You can<br />also compose emails offline and send them on the fly.You can even<br />download emails on cell phones that has email application installed.<br />It can be an easy way to transfer files from your mobile phone as mms<br />is often a bit costly.There are many FREE pop service providers.<br />Hotpop.com,BlueBottle.com,Gmail.com,Acasa.ro and Yahoo! (UK,IN,SG and<br />a few more intl version) are popular!</p>
]]></content:encoded>
			<wfw:commentRss>http://masnun.com/blog/2007/02/20/pop-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import Other Emails To Gmail</title>
		<link>http://masnun.com/blog/2007/02/20/import-other-emails-to-gmail/</link>
		<comments>http://masnun.com/blog/2007/02/20/import-other-emails-to-gmail/#comments</comments>
		<pubDate>Tue, 20 Feb 2007 13:55:00 +0000</pubDate>
		<dc:creator>masnun</dc:creator>
				<category><![CDATA[Blog Post]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[free-services]]></category>

		<guid isPermaLink="false">http://masnun.com/2007/02/20/import-other-emails-to-gmail/</guid>
		<description><![CDATA[Gmail has finally given it&#39;s users a chance to import emails fromother pop3 email accounts. It also lets you send email from thoseaccounts too. Gmail automatically checks the pop3 accounts andretrieves fails. You can add up to 5 POP3 accounts. &#8230; <a href="http://masnun.com/blog/2007/02/20/import-other-emails-to-gmail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Gmail has finally given it&#39;s users a chance to import emails from<br />other pop3 email accounts. It also lets you send email from those<br />accounts too. Gmail automatically checks the pop3 accounts and<br />retrieves fails. You can add up to 5 POP3 accounts. It&#39;s an useful<br />service for them who used to use pop email and now use gmail. I&#39;ve<br />added my DeshMail pop accounts to my gmail. You can specify labels for<br />specific pop accounts. The key point is you have to pay for this<br />service in Yahoo! and many others but its free!</p>
]]></content:encoded>
			<wfw:commentRss>http://masnun.com/blog/2007/02/20/import-other-emails-to-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
