From 148f6d8fb6ea028b2738a0553f058e903268a0b8 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 22 Feb 2005 13:34:57 +0000 Subject: Made Action Mailer templates use UTF-8 as default git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionmailer/lib/action_mailer/base.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'actionmailer/lib') diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index 8b04c42ee0..67141c461b 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -140,13 +140,12 @@ module ActionMailer #:nodoc: send("perform_delivery_#{delivery_method}", mail) if perform_deliveries end - def quoted_printable( text, charset ) - text = text.gsub( /[^a-z ]/i ) { "=%02x" % $&[0] }. - gsub( / /, "_" ) + def quoted_printable(text, charset) + text = text.gsub( /[^a-z ]/i ) { "=%02x" % $&[0] }.gsub( / /, "_" ) "=?#{charset}?Q?#{text}?=" end - private + private def perform_delivery_smtp(mail) Net::SMTP.start(server_settings[:address], server_settings[:port], server_settings[:domain], server_settings[:user_name], server_settings[:password], server_settings[:authentication]) do |smtp| -- cgit v1.2.3