diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-18 07:11:00 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-18 07:11:00 +0000 |
commit | 9357321946f5fdef6a4e1424d2b5d83acf03dfdb (patch) | |
tree | 06f7b968c68c7f6d358cd49b035f4563f3ea6e3b /actionmailer/lib/action_mailer | |
parent | a263612b7e75064ffc6c9028b495b8db74aaaa1d (diff) | |
download | rails-9357321946f5fdef6a4e1424d2b5d83acf03dfdb.tar.gz rails-9357321946f5fdef6a4e1424d2b5d83acf03dfdb.tar.bz2 rails-9357321946f5fdef6a4e1424d2b5d83acf03dfdb.zip |
Added that deliver_* will now return the email that was sent
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index b731880570..36159028b7 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -111,15 +111,11 @@ module ActionMailer #:nodoc: end end - def mail(to, subject, body, from, timestamp = nil, headers = {}, - charset = @@default_charset - ) #:nodoc: + def mail(to, subject, body, from, timestamp = nil, headers = {}, charset = @@default_charset) #:nodoc: deliver(create(to, subject, body, from, timestamp, headers, charset)) end - def create(to, subject, body, from, timestamp = nil, headers = {}, - charset = @@default_charset - ) #:nodoc: + def create(to, subject, body, from, timestamp = nil, headers = {}, charset = @@default_charset) #:nodoc: m = TMail::Mail.new m.body = body m.subject, = quote_any_if_necessary(charset, subject) @@ -139,6 +135,7 @@ module ActionMailer #:nodoc: def deliver(mail) #:nodoc: logger.info "Sent mail:\n #{mail.encoded}" unless logger.nil? send("perform_delivery_#{delivery_method}", mail) if perform_deliveries + return mail end def quoted_printable(text, charset)#:nodoc: |