<?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>WebOnRails &#187; ActionMailer</title>
	<atom:link href="http://webonrails.com/category/actionmailer/feed/" rel="self" type="application/rss+xml" />
	<link>http://webonrails.com</link>
	<description>Its all about Ruby On Rails</description>
	<lastBuildDate>Mon, 05 Jul 2010 16:37:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>uninitialized constant ActionMailer::Quoting::Encoding</title>
		<link>http://webonrails.com/2010/04/13/uninitialized-constant-actionmailer-quoting-encoding/</link>
		<comments>http://webonrails.com/2010/04/13/uninitialized-constant-actionmailer-quoting-encoding/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 16:25:25 +0000</pubDate>
		<dc:creator>Akhil Bansal</dc:creator>
				<category><![CDATA[ActionMailer]]></category>
		<category><![CDATA[Exception]]></category>
		<category><![CDATA[ROR]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rubyonrails]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Error]]></category>

		<guid isPermaLink="false">http://webonrails.com/?p=370</guid>
		<description><![CDATA[Just a quick note, If you are getting &#8220;uninitialized constant ActionMailer::Quoting::Encoding&#8221; while using ActionMailer, then make sure that your mailer look like: class Notifier &#60; ActionMailer::Base def signup_notification(recipient) recipients recipient.email_address_with_name bcc [&#34;bcc@example.com&#34;] from &#34;system@example.com&#34; subject &#34;New account information&#34; body :account =&#62; recipient end end Actually, yesterday we were getting &#8220;uninitialized constant ActionMailer::Quoting::Encoding&#8221; while using ActionMailer]]></description>
			<content:encoded><![CDATA[<p>Just a quick note, If you are getting <strong>&#8220;uninitialized constant ActionMailer::Quoting::Encoding&#8221;</strong> while using ActionMailer, then make sure that your mailer look like:</p>
<pre class="brush: ruby;">
 class Notifier &lt; ActionMailer::Base
   def signup_notification(recipient)
     recipients recipient.email_address_with_name
     bcc        [&quot;bcc@example.com&quot;]
     from       &quot;system@example.com&quot;
     subject    &quot;New account information&quot;
     body       :account =&gt; recipient
   end
 end
</pre>
<p>Actually, yesterday we were getting &#8220;uninitialized constant ActionMailer::Quoting::Encoding&#8221; while using ActionMailer in production but it was working fine in all modes(development/production) on localhost. Our mailer was like:</p>
<pre class="brush: ruby;">
 class Notifier &lt; ActionMailer::Base
   def signup_notification(recipient)
     @recipients   = recipient.email_address_with_name
     @bcc            = [&quot;bcc@example.com&quot;]
     @from          = &quot;system@example.com&quot;
     @subject       = &quot;New account information&quot;
     @body          = :account =&gt; recipient
   end
 end
</pre>
<p>We could not find the actual issue with this mailer. But the above said error was disappeared when we changed the same mailer as following:</p>
<pre class="brush: ruby;">
 class Notifier &lt; ActionMailer::Base
   def signup_notification(recipient)
     recipients recipient.email_address_with_name
     bcc        [&quot;bcc@example.com&quot;]
     from       &quot;system@example.com&quot;
     subject    &quot;New account information&quot;
     body       :account =&gt; recipient
   end
 end
</pre>
<p>Do you guys have any idea? I would love to listen from you.</p>
<p><strong>Update:</strong> No its not solved yet. Still same issue. May be some issue with character encoding with the TMail object. <img src='http://webonrails.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><strong>Update 2:</strong> This was the issue <a href="http://github.com/hmcgowan/roo/issues#issue/4/comment/106328">http://github.com/hmcgowan/roo/issues#issue/4/comment/106328</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webonrails.com/2010/04/13/uninitialized-constant-actionmailer-quoting-encoding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ActionMailer Error: hostname was not match with the server certificate</title>
		<link>http://webonrails.com/2009/01/28/actionmailer-error-hostname-was-not-match-with-the-server-certificate/</link>
		<comments>http://webonrails.com/2009/01/28/actionmailer-error-hostname-was-not-match-with-the-server-certificate/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 07:50:03 +0000</pubDate>
		<dc:creator>Akhil Bansal</dc:creator>
				<category><![CDATA[ActionMailer]]></category>
		<category><![CDATA[Exception]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[ROR]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rubyonrails]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[Action mailer]]></category>
		<category><![CDATA[tls]]></category>

		<guid isPermaLink="false">http://webonrails.com/?p=198</guid>
		<description><![CDATA[You guys may have stuck with following error while using ActionMailer with Rails 2.2.2 . OpenSSL::SSL::SSLError (hostname was not match with the server certificate): /usr/lib/ruby/1.8/openssl/ssl.rb:123:in `post_connection_check' /usr/lib/ruby/1.8/net/smtp.rb:582:in `tlsconnect' /usr/lib/ruby/1.8/net/smtp.rb:562:in `do_start' /usr/lib/ruby/1.8/net/smtp.rb:525:in `start' /vendor/rails/actionmailer/lib/action_mailer/base.rb:671:in `perform_delivery_smtp' /vendor/rails/actionmailer/lib/action_mailer/base.rb:526:in `__send__' /vendor/rails/actionmailer/lib/action_mailer/base.rb:526:in `deliver!' /vendor/rails/actionmailer/lib/action_mailer/base.rb:392:in `method_missing' /app/controllers/users_controller.rb:40:in `send_email_to_confirm_user' Actually, Rails 2.2.2 turn on STARTTLS if it is available in Net::SMTP (added]]></description>
			<content:encoded><![CDATA[<p>You guys may have stuck with following error while using ActionMailer with Rails 2.2.2 .</p>
<pre class="brush: bash;">
OpenSSL::SSL::SSLError (hostname was not match with the server certificate):
    /usr/lib/ruby/1.8/openssl/ssl.rb:123:in `post_connection_check'
    /usr/lib/ruby/1.8/net/smtp.rb:582:in `tlsconnect'
    /usr/lib/ruby/1.8/net/smtp.rb:562:in `do_start'
    /usr/lib/ruby/1.8/net/smtp.rb:525:in `start'
    /vendor/rails/actionmailer/lib/action_mailer/base.rb:671:in `perform_delivery_smtp'
    /vendor/rails/actionmailer/lib/action_mailer/base.rb:526:in `__send__'
    /vendor/rails/actionmailer/lib/action_mailer/base.rb:526:in `deliver!'
    /vendor/rails/actionmailer/lib/action_mailer/base.rb:392:in `method_missing'
    /app/controllers/users_controller.rb:40:in `send_email_to_confirm_user'
</pre>
<p>Actually, <a href="http://github.com/rails/rails/commit/732c724df61bc8b780dc42817625b25a321908e4" target="_blank">Rails 2.2.2 turn on STARTTLS if it is available in Net::SMTP (added in Ruby 1.8.7) and the SMTP server supports it</a>. </p>
<p>If you use postfix, then you fix it quickly by disabling tls by setting <strong>&#8220;smtpd_use_tls=no&#8221;</strong> in /etc/postfix/main.cf .</p>
<p>Remember to restart postfix and rails app server.</p>
]]></content:encoded>
			<wfw:commentRss>http://webonrails.com/2009/01/28/actionmailer-error-hostname-was-not-match-with-the-server-certificate/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
