<?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>Information Technology Management &#38; Development &#187; email</title>
	<atom:link href="http://blogs.yellowfish.biz/tag/email/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.yellowfish.biz</link>
	<description>IT Consulting, Infrastructure, Software &#38; Voip Phone Systems</description>
	<lastBuildDate>Tue, 27 Jul 2010 20:04:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Send Emails without installing SMTP server</title>
		<link>http://blogs.yellowfish.biz/2009/send-emails-without-installing-smtp-server/</link>
		<comments>http://blogs.yellowfish.biz/2009/send-emails-without-installing-smtp-server/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 17:57:52 +0000</pubDate>
		<dc:creator>Praveen Ray</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[google apps]]></category>
		<category><![CDATA[system-administration]]></category>

		<guid isPermaLink="false">http://blogs.yellowfish.biz/?p=298</guid>
		<description><![CDATA[&#160;Sending emails is easy. All you need is access to an SMTP server. Or local Sendmail daemon. Installing and configuring either of the two is a massive task. Even if you get it right, your ISP might not like you running SMTP server. If you are past ISP hurdle, chances are your emails will get [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;Sending emails is easy. All you need is access to an SMTP server. Or local Sendmail daemon. Installing and configuring either of the two is a massive task. Even if you get it right, your ISP might not like you running SMTP server. If you are past ISP hurdle, chances are your emails will get marked as SPAM for lack of Reverse DNS.</p>
<p>This is an easier way and we all know it &#8211; just use Google SMTP server. All you need is a gmail account or Google Apps account &#8211; and who doesn&#8217;t have a google account?</p>
<p>However, sometimes, the third party software you&#8217;re trying to configure to send emails doesn&#8217;t support anything other than localhost. Or it does but wants plain SMTP whereas Google does only TLS. Or simply, connecting to Google&#8217;s SMTP for each email takes few seconds and you want faster response.</p>
<p>Here&#8217;s a simple solution:</p>
<ul>
<li>Install the wonderful Email Relay program from <a href="http://emailrelay.sourceforge.net/">here</a></li>
<li>Create a file :

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">vi <span style="color: #339933;">/</span>etc<span style="color: #339933;">/</span>google<span style="color: #339933;">.</span>email<span style="color: #339933;">.</span>auth</pre></div></div>

<p>    and add following line:&nbsp;</p>
<ul>
<li>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">login client yourgoogleemailid@gmail.<span style="color:#9900CC;">com</span> yourgooglepassword</pre></div></div>

</li>
</ul>
</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">chown daemon:root <span style="color:#006600; font-weight:bold;">/</span>etc<span style="color:#006600; font-weight:bold;">/</span>google.<span style="color:#9900CC;">email</span>.<span style="color:#9900CC;">auth</span>
chmod <span style="color:#006666;">400</span> <span style="color:#006600; font-weight:bold;">/</span>etc<span style="color:#006600; font-weight:bold;">/</span>google.<span style="color:#9900CC;">email</span>.<span style="color:#9900CC;">auth</span></pre></div></div>

</li>
<li>run emailrelay as: &nbsp;&nbsp;

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">emailrelay <span style="color:#006600; font-weight:bold;">--</span>as<span style="color:#006600; font-weight:bold;">-</span>proxy smtp.<span style="color:#9900CC;">gmail</span>.<span style="color:#9900CC;">com</span>:<span style="color:#006666;">587</span> <span style="color:#006600; font-weight:bold;">--</span>client<span style="color:#006600; font-weight:bold;">-</span>tls <span style="color:#006600; font-weight:bold;">--</span>client<span style="color:#006600; font-weight:bold;">-</span>auth <span style="color:#006600; font-weight:bold;">/</span>etc<span style="color:#006600; font-weight:bold;">/</span>google.<span style="color:#9900CC;">email</span>.<span style="color:#9900CC;">auth</span></pre></div></div>

</li>
<li>Configure your software to use localhost for SMTP server (Port defaulted to 25).</li>
</ul>
<p>Test your Local Emailer. If it doesn&#8217;t work, enable logging in <em>/</em><strong><em>etc/emailrelay.conf</em></strong> by uncommenting<strong> <em>verbose</em></strong> line and look into your syslog file (/var/log/syslog)</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.yellowfish.biz/2009/send-emails-without-installing-smtp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Gmail Servers for Asterisk Emails</title>
		<link>http://blogs.yellowfish.biz/2009/using-gmail-servers-for-asterisk-emails/</link>
		<comments>http://blogs.yellowfish.biz/2009/using-gmail-servers-for-asterisk-emails/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 13:06:56 +0000</pubDate>
		<dc:creator>Praveen Ray</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://blogs.yellowfish.biz/?p=199</guid>
		<description><![CDATA[Using Google Email servers as Mail Gateway for Asterisk Emails]]></description>
			<content:encoded><![CDATA[<p>If you run your asterisk behind Firewalls (which you probably do), you might run into issues with your ISP blocking outgoing Emails from your Asterisk Box. Here&#8217;s a simple solution which lets you use the Gmail servers instead, eliminating these issues.<br />
<a href="http://pbxinaflash.com/forum/showthread.php?t=974&amp;highlight=gmail">Steps to use Gmail for Asterisk here<br />
</a><br />
Few simple notes :</p>
<ol>
<li>You can use your Google Apps Account too. Just use your full Email as username , eg. john@mycompany.com</li>
<li>Make sure the Asterisk hostname as reported by &#8216;hostname&#8217; command is in /etc/hosts &#8211; on the line with 127.0.0.1 as IP address &#8211; otherwise, sendmail would take few minutes to start and send emails.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blogs.yellowfish.biz/2009/using-gmail-servers-for-asterisk-emails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Teach Firefox to use your Google Apps Email</title>
		<link>http://blogs.yellowfish.biz/2009/teach-firefox-to-use-your-google-apps-email/</link>
		<comments>http://blogs.yellowfish.biz/2009/teach-firefox-to-use-your-google-apps-email/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 15:28:42 +0000</pubDate>
		<dc:creator>Praveen Ray</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[google apps]]></category>

		<guid isPermaLink="false">http://blogs.yellowfish.biz/?p=196</guid>
		<description><![CDATA[Connect Firefox and Google Apps Email.]]></description>
			<content:encoded><![CDATA[<p>Like many small businesses, we use Google Apps for all our Email and Collaboration needs and Firefox being our preferred browser, we&#8217;d wanted to teach Firefox to use our Google Apps email to send emails by default. Here are the steps I found from a quick google search :</p>
<ol>
<li>Open up Firefox</li>
<li>type <em>about:config</em> in the address bar and click on &#8216;I promise&#8217; button to continue.</li>
<li>in the Filter box, type: <em><strong>gecko.handlerService.allowRegisterFromDifferentHost</strong></em></li>
<li>If the value is set to False, double click on the line to turn it to &#8216;true&#8217;</li>
<li>in the address bar again, copy and paste these : <em><strong>javascript:window.navigator.registerProtocolHandler(&#8221;mailto&#8221;,&#8221;https://mail.google.com/a/</strong></em><strong><em><span style="color: #ff0000;">yourdomain.com</span></em></strong><em><strong>/mail/?extsrc=mailto&amp;url=%s&#8221;,&#8221;Google Apps&#8221;)</strong></em></li>
<li>Remember to replace yourdomain.com with your domain. Also, make sure those are double quotes. After pasting into the address bar, just delete each double quote character and retype them as double quote again &#8211; to be sure.</li>
<li>Hit Enter while still in the address bar.</li>
<li>Goto Edit/Preferences or Tools/Options &#8211; depending upon your version of Firefox</li>
<li>Goto Applications</li>
<li>Find &#8216;mailto&#8217; in the list and click on the dropdown &#8211; it should now have an entry called &#8216;Google Apps&#8217;. Pick this, click Close.</li>
<li>Goto a website and pick File/Send Link &#8211; it should open up your Google Apps email (assuming you&#8217;re already logged into the Google Apps account).</li>
</ol>
<ol></ol>
]]></content:encoded>
			<wfw:commentRss>http://blogs.yellowfish.biz/2009/teach-firefox-to-use-your-google-apps-email/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Send Emails from Merb</title>
		<link>http://blogs.yellowfish.biz/2009/send-emails-from-merb/</link>
		<comments>http://blogs.yellowfish.biz/2009/send-emails-from-merb/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 15:16:34 +0000</pubDate>
		<dc:creator>Praveen Ray</dc:creator>
				<category><![CDATA[Web Frameworks]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[merb]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blogs.yellowfish.biz/?p=40</guid>
		<description><![CDATA[Apparently, merb&#8217;s approach to sending email is far better than ActiveMailer. However, I still find it quite annoying and heavyweight for simple applications. And most of the email notifications sent from web applications tend to be simple. In order to send emails via Merb, you need to create mailer views and mailer controllers and pass [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently, merb&#8217;s approach to sending email is far better than ActiveMailer. However, I still find it quite annoying and heavyweight for simple applications. And most of the email notifications sent from web applications tend to be simple. In order to send emails via Merb, you need to create mailer views and mailer controllers and pass parameters between them carefully. I, for sure, always get confused which parameters to pass where and how incoming parameters get be exposed to the mailer view templates.</p>
<p>Here&#8217;s a simple routine to send emails right from within your merb controllers. Or any other place, for that matter.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">&nbsp;
 gem install mailfactory
 gem install smtp_tls <span style="color:#008000; font-style:italic;"># if you need authentication or </span>
                            <span style="color:#008000; font-style:italic;">#want to use google smtp.</span>
                            <span style="color:#008000; font-style:italic;"># A quick google search will find it.</span>
<span style="color:#008000; font-style:italic;"># start sending emails:</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'mailfactory'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'net/smtp'</span>
mail             = MailFactory.<span style="color:#9900CC;">new</span>
   mail.<span style="color:#9900CC;">from</span>      = <span style="color:#996600;">'your@company.com'</span>
   mail.<span style="color:#9900CC;">subject</span>  = <span style="color:#996600;">'Test'</span>
   mail.<span style="color:#9900CC;">html</span>       = <span style="color:#996600;">'html mail body'</span>
   mail.<span style="color:#9900CC;">text</span>       = <span style="color:#996600;">&quot;mail text , if it's not html&quot;</span>
   mail.<span style="color:#9900CC;">replyTo</span>   = <span style="color:#996600;">'noreply@company.com'</span>
   <span style="color:#008000; font-style:italic;"># repeat next line for each attachment</span>
   mail.<span style="color:#9900CC;">attach_as</span><span style="color:#006600; font-weight:bold;">&#40;</span>file_path, <span style="color:#996600;">'filename to attach as'</span>, <span style="color:#996600;">'application/pdf'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#6666ff; font-weight:bold;">Net::SMTP</span>.<span style="color:#9900CC;">start</span><span style="color:#006600; font-weight:bold;">&#40;</span>
  <span style="color:#996600;">'smtp.host.com'</span>,
  <span style="color:#006666;">25</span>,
  <span style="color:#996600;">'from@domain.com'</span>,
  <span style="color:#996600;">'smtp username'</span>,
  <span style="color:#996600;">'smtp password'</span>,
  <span style="color:#996600;">'plain'</span> <span style="color:#008000; font-style:italic;"># authentication method</span>
<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>smtp<span style="color:#006600; font-weight:bold;">|</span>
smtp.<span style="color:#9900CC;">send_message</span><span style="color:#006600; font-weight:bold;">&#40;</span>mail.<span style="color:#9900CC;">to_s</span>, <span style="color:#996600;">'from@address.com'</span>, <span style="color:#996600;">'to@address.com'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>I find this simpler since it&#8217;s encapsulated in one place. No need to create multiple files and impose entire MVC paradigm for sending emails. Let&#8217;s KISS.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.yellowfish.biz/2009/send-emails-from-merb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
